[RFC][PATCH] New style of revision id
Jari Aalto
jari.aalto at cante.net
Fri Oct 27 19:32:02 BST 2006
Alexander Belchenko <bialix at ukr.net> writes:
> Goffredo Baroncelli пиÑет:
> >>
> >> 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...
>
> I like the idea.
>
>
> > I think that if an hash is composed only by numberm the euristic
> > logic which you suggest can cause problem.
Why not simply start every hash wih a alphabet, so it can always be
distinguished:
"h" + 9f472a5cfbc5fc77de3a39c5cecc0d09326d3e86-ghigo at venice-20061025202916
|
from word "hash"
Or
"r" + 9f472a5cfbc5fc77de3a39c5cecc0d09326d3e86-ghigo at venice-20061025202916
|
from word "revid"
"r" would be better, because it's to the left of the keyboard,
whereas "h" is is in the middle".
Jari
More information about the bazaar
mailing list