bzr cat --name-from revision doesn't seem to do anything
Andrew King
eurokang at gmail.com
Wed Feb 9 02:19:12 UTC 2011
So is it desirable annotate works like that?
Sent from my iPhone
On 09/02/2011, at 1:03 PM, John Arbash Meinel <john at arbash-meinel.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 2/8/2011 7:50 PM, Andrew King wrote:
>> 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
>
> I'm guessing the flag was added to force looking in the revision before
> the working tree. For the case of:
>
> bzr init .
> echo original foo > foo
> bzr add
> bzr commit -m "added foo"
> bzr mv foo bar
> echo new foo > foo
> bzr add
> bzr commit -m "new foo"
>
> bzr cat foo
> bzr cat -r1 foo
> bzr cat -r1 foo --name-from-revision
>
> John
> =:->
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (Cygwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk1R9egACgkQJdeBCYSNAAOvdwCeIhkgTE7sdsaUBSpQKyo9izp9
> sFEAn16gwKIvdWAVrOLEEKKk9URxY99Z
> =XKeJ
> -----END PGP SIGNATURE-----
More information about the bazaar
mailing list