bzr branch -r

John A Meinel john at arbash-meinel.com
Wed Jul 13 19:14:08 BST 2005


Robey Pointer wrote:
> A trivial fix to let "bzr branch" work again with -r. :)
>
> robey
>
>
> --- bzrlib/commands.py
> +++ bzrlib/commands.py
> @@ -620,7 +620,7 @@
>              br_to.set_root_id(br_from.get_root_id())
>              if revision:
> -                revno = br_to.lookup_revision(revision[0])
> +                revno = revision[0]
>                  try:
>                      br_to.update_revisions(br_from,  stop_revision=revno)
>                  except NoSuchRevision:
>
>
>
>
Unfortunately not quite the right fix (because you can now supply stuff
like 'date:yesterday' or 'revid:aoe at utnhauoeu-234234-234234' to the
--revision command.

The correct fix is:

if revision is None:
   revision = [None]
else:
   # Check for the right number of revision arguments
   ...

revno, rev_id = br_to.get_revision_info(revision[0])
if revno == 0:
   revno = None

This has been fixed in my bzr-split-storage branch, but it might be a
while before that is merged, since it is a pretty big change.

John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050713/bc33cd89/attachment.pgp 


More information about the bazaar mailing list