[Xapian-tickets] [Xapian] #621: Migrate to git
Xapian
nobody at xapian.org
Sun Oct 2 23:10:03 BST 2016
#621: Migrate to git
--------------------+-----------------------------
Reporter: olly | Owner: olly
Type: task | Status: assigned
Priority: normal | Milestone: 1.4.x
Component: Other | Version:
Severity: normal | Resolution:
Keywords: | Blocked By:
Blocking: | Operating System: All
--------------------+-----------------------------
Comment (by olly):
I've added a command to find the git commit corresponding to a given SVN
revision number to https://xapian.org/bleeding :
{{{#!sh
git log --grep '^git-svn-id: .*@12345 ' `git branch --list -r
'origin/svn/*'`
}}}
> So we may be better off advising people to set `core.abbrev` in git
clone to 8. We could have bootstrap warn if it's in a git clone with the
default (`git config core.abbrev` will return the empty string). I'm
unaware of any way of "pushing" configuration on clone.
I've just written a simple check for the value and then if it's < 8 and
not set on the repo itself, to set it to 8 on the repo. But if we already
have collisions at length 8, that's clearly too short. I think we should
go with 12 - that's not so long as to be clumsy, but long enough that we
are unlikely to see collisions for a significant time. Using the full
SHA1 is preferable in places (e.g. commit messages and the backporting git
notes I've recently started adding).
> I'm not convinced from the trac ticket that they'll get to it any time
soon unless someone chips in.
I'm happy I've at least led that horse to water.
--
Ticket URL: <https://trac.xapian.org/ticket/621#comment:26>
Xapian <//xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list