[RFC][PATCH] New style of revision id

Erik Bågfors zindar at gmail.com
Thu Oct 26 09:54:49 BST 2006


On 10/26/06, Alexander Belchenko <bialix at ukr.net> wrote:
> Goffredo Baroncelli пишет:
> > Hi all,
> >
> > I hacked a bit bazaar and now I added the support for revision-id with
> > checksum ( as git and/or hgweb ). John made some suggestions and now that is
> > the result.
> >
> >
> > ****
> > NOTE
> > This is an experimental version, the revision-id format can change (and will),
> > so please don't use it in production.
> > ****
> >
> > The new revision-id is in the form:
> >
> > <user>@<host>-<yyyymmddhhmmss>-<sha1sum>
>
> After discussion with git folks I think it's better to use form:
>
> <sha1sum>-<user>@<host>-<yyyymmddhhmmss>
>
> In this case unique id can be easily autocompleted or shortened to (say
> so) 10 chars ;-). And this could be useful to using in visualisation
> tools like bzrtools' graph-ancestry plugin.

I think this is better, but I'd also like all commands to be able to
take the shortest unique identifier to each command.  So if the revid
is

9f472a5cfbc5fc77de3a39c5cecc0d09326d3e86-ghigo at venice-20061025202916

I would like to be able to run
bzr branch -r revid:9f472a5c for example

Better yet, if -r finds a revision number that isn't a number, it
could assume that it's a revid, so

bzr branch -r 15 would use revno 15
bzr branch -r 9f472a5c would use the revid that matches...

/Erik
-- 
google talk/jabber. zindar at gmail.com
SIP-phones: sip:erik_bagfors at gizmoproject.com
sip:17476714687 at proxy01.sipphone.com


More information about the bazaar mailing list