bzr cat --name-from revision doesn't seem to do anything

Andrew King eurokang at gmail.com
Wed Feb 9 01:50:54 UTC 2011


 bzr init .
 touch foo
 bzr add foo
 bzr commit -m "added foo" foo
 bzr mv foo bar
 bzr commit
 bzr cat -r1 bar
    no error (finds foo has become bar)
 bzr cat -r1 foo
    no error
 bzr cat -r1 foo --name-from-revision
    no error
bzr cat -r1 bar --name-from-revision
    bzr: ERROR: u'bar' is not present in revision

I don't understand what the point of --name from revision.

bzr cat finds that foo has become bar anyway, so --name-from-revision just
seems to make it less likely that you find what you are looking for?

I am looking at this in order to try and address the merge comments on
https://code.launchpad.net/~eurokang/bzr/537442-annotate-removed/+merge/48906
by
consolidating the way files are looked up by name and revision information,
but it seems cat's way doesn't make that much sense!

Cheers,
Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/bazaar/attachments/20110209/3e031020/attachment.html>


More information about the bazaar mailing list