-r 1-100 vs -r 1:100 vs ...
Michael Ellerman
michael at ellerman.id.au
Sat May 28 20:22:47 BST 2005
Hi all,
So I've been thinking about what the syntax for diff ranges should be. I
personally prefer using 1-100, because I think it's more obvious and it means
we don't need {}. But there's arguments both ways.
Then I thought, hang on, why don't we just specify it using a pre-existing and
well understood "syntax"?
And so we have:
bzr diff -r 1 to 100
English!
We can also do:
bzr log -r -10 to -5 -v
bzr diff -r 1 to now
bzr diff -r to date:yesterday
bzr diff -r start to revid:michael at concordia-20050528165512-31af65114a1cdbd2
and so on.
I've implemented this on top of John's original patch to add x:y and all the
date and revid goodies. And there's also Rusty's diff range patch, so you can
actually use the revision ranges.
Try it out.
Or am I crazy?
cheers
--
Michael Ellerman
IBM OzLabs
email: michael:ellerman.id.au
inmsg: mpe:jabber.org
wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)
We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
-------------- next part --------------
A non-text attachment was scrubbed...
Name: revision-range-x-to-y-syntax.patch
Type: text/x-diff
Size: 20100 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050529/1bdb57bd/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050529/1bdb57bd/attachment.pgp
More information about the bazaar
mailing list