cat and rename

William Dode wilk-ml at flibuste.net
Wed Apr 6 11:28:03 BST 2005


Martin Pool <mbp at sourcefrog.net> writes:

> On Wed, 2005-04-06 at 09:35 +0200, William Dode wrote:
>> The bzr cat command is really great !
>> 
>> But how will it handle renames ?
>> 
>> bzr add toto
>> bzr commit
>> bzr rename toto titi
>> bzr add toto
>> bzr commit
>> 
>> bzr cat -r 1 titi 
>> and
>> bzr cat -r 1 toto
>> should show the same or not ?
>
> It will show the file that had that name in the given revision -- the
> first command will give you an error because there is no titi in r1.
>
> This is where the proposed syntax for in-path versioning might help.
> Then either of these give you the first file:
>
> bzr cat titi/@1  (file now called titi, as it was in r1)
> bzr cat ./@1/toto  (file called toto in r1)

I think the problem is more to can find quickly which was the name of
the file in the precendents revisions.

Maybe there is already a command (planed) to look for the history of a
file by revision ?
bzr history titi
r1: A toto
r2: R toto => titi
r6: M titi (modified by xxx ?)

>
> That might be nice, but I don't think it's urgent.

of course not, i just thought about this because i'm curently testing
the last features...

-- 
William - http://flibuste.net




More information about the bazaar mailing list