cat and rename
Martin Pool
mbp at sourcefrog.net
Wed Apr 6 10:52:34 BST 2005
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)
That might be nice, but I don't think it's urgent.
--
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050406/79e4c494/attachment.pgp
More information about the bazaar
mailing list