Dotted revisions numbers and range of revisions

John Arbash Meinel john at arbash-meinel.com
Thu Nov 2 15:57:34 GMT 2006


James Henstridge wrote:
> On 02/11/06, Alexander Belchenko <bialix at ukr.net> wrote:
>> > Perhaps we should allow
>> >
>> >  bzr diff -r 1.2.1 -r 1.2.3
>>
>> It seems that other VCS allows this syntax. At least SVN does.
>> I think bzr also could.
> 
> As another data point, Subversion uses "-r N:M", although that
> probably conflicts with Bazaar's current revision specifiers
> (revid:foo, etc).
> 
> James.

We originally supported using "-r 1:2" a long, long time ago. Actually
the support for it still existed up until almost a month or two ago (it
would print out warnings, though).

We did get rid of it because we wanted to use : as our namespace
distinguisher. We don't strictly need it, since we actually just look
things up by prefix, it is just convention that we use 'branch:' instead
of 'branch'. And certainly 'branch:foo' is better than 'branchfoo'. :)

SVN has the advantage that it *only* has revision numbers. So you don't
have to worry about revision ids. And other references like 'yesterday'
are obvious. I'm curious how it does dates. It seems to use {2006-01-01}
as the date distinguisher. They also have HEAD, BASE, COMMITTED, PREV,
though I can't tell the difference between BASE & COMMITTED, unless you
can have a base rev which isn't a commit.

John
=:->

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20061102/73baf63d/attachment.pgp 


More information about the bazaar mailing list