-r 1-100 vs -r 1:100 vs ...

Martin Pool mbp at sourcefrog.net
Sat Jun 4 03:18:01 BST 2005


> 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

Nice (a bit of an AppleScript flavour) but probably a bit flaky if you
consider someone might have a file called 'to' in their directory...

Here's another option (or two options):

  bzr log -r 10        # show just r10
  bzr log --from 10    
  bzr log --from 10 --to date:yesterday

or maybe something like 

  bzr log --since date:yesterday
  bzr log --before 10

This is simple to write, and easy to parse.  On the other hand it
different from cvs/svn, I'm not sure what option names would be good,
and it doesn't map easily to inline revision syntax (hello.c/@32).
(So I mention it mostly in the hope of inspiring someone else.)

-- 
Martin




More information about the bazaar mailing list