pull/init from bzr merge directive

Bastian B bastian.dev at googlemail.com
Tue Oct 30 14:43:17 UTC 2012


Hi,

I don't know much about git. But I've read I could do
git bundle create /tmp/backup.bundle --all
to export the whole repository to a single file
and then do
git clone /tmp/backup.bundle /dest
to create a repository from that file again. I want to do this to
encrypt the complete repository data and be able to store it in a
unsafe place.

How to do this with bzr? I'm using bzr 2.5.1 at the moment and came to
this to export the changes
bzr send --no-patch -o /tmp/backup.bundle
But when I try to
bzr branch /tmp/backup.bundle
it says
bzr: ERROR: Not a branch: "/tmp/backup.bundle/".
If I try
bzr init
bzr pull /tmp/backup.bundle
I get a stack trace
bzr: ERROR: bzrlib.errors.NoSuchRevision:
CHKInventoryRepository('file:///tmp/init/.bzr/repository/') has no
revision foo.bar at gmail.com-20121030134647-d2s2j03lr4zawffk

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line
920, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line
1131, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line
673, in run_argv_aliases
...
  File "/usr/lib/python2.7/dist-packages/bzrlib/vf_repository.py",
line 1731, in get_inventory
    return self.iter_inventories([revision_id]).next()
  File "/usr/lib/python2.7/dist-packages/bzrlib/vf_repository.py",
line 1751, in iter_inventories
    raise errors.NoSuchRevision(self, revid)
NoSuchRevision:
CHKInventoryRepository('file:///tmp/init/.bzr/repository/') has no
revision foo.bar at gmail.com-20121030134647-d2s2j03lr4zawffk

Any suggestions?

Kind regards



More information about the bazaar mailing list