unable to branch github repo containing submodules

Parth Malwankar parth.malwankar at gmail.com
Mon Mar 22 10:09:30 GMT 2010


On Mon, Mar 22, 2010 at 2:19 AM, Jelmer Vernooij <jelmer at samba.org> wrote:
>
> Hi Parth,
>
> On Sat, 2010-03-20 at 17:38 +0530, Parth Malwankar wrote:
> > I am trying to checkout a github repo that seems to
> > contain submodules. Is this supported by bzr-git? I get
> > an error message saying I need to upgrade my repo format.
> > Should I be doing something differently?
> bzr-git supports submodules, but it maps (and has to map them) to nested
> trees in Bazaar. Unfortunately, Bazaar only has some limited support for
> nested trees in its API and some experimental file formats that support
> it.
>
> > I am using bzr 2.1 and bzr-git 0.4.3 on ubuntu 9.10.
> >
> > [parrot]% bzr branch git://github.com/fperrad/lua.git lua
> > - fetching revisions 770/1047
> > bzr: ERROR: The repository you are fetching from contains submodules.
> > To continue, upgrade your Bazaar repository to a format that supports
> > nested trees, such as 'development-subtree'.
> > [parrot]%
> You can only check out this Github repo if you upgrade the local Bazaar
> branch to a format that supports nested trees. The only formats that
> support nested trees at the moment are all experimental - only use this
> for testing, not for any production code. These formats may change
> without notice, eat your cat and set your vacuum cleaner on fire.
>


> If you still would like to try with such a format, run something like
> this:
>
>  $ bzr init --development-subtree lua
>  $ bzr pull -d lua git://github.com/fperrad/lua.git
>

Hi Jelmer,

I tried the above but it crashed (traced below). I don't plan to
use the above branch for production so its not really a
problem. If you would like me to file a bug for the crash please
let me know.

Regards,
Parth


[tmp]% bzr pull -d lua git://github.com/fperrad/lua.git
bzr: ERROR: exceptions.AssertionError: Unknown kind 'tree-reference'

*** Bazaar has encountered an internal error.  This probably indicates a
    bug in Bazaar.  You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    attaching the crash file
        /home/parthm/.cache/crash/bzr-20100322100055-6719.crash
    and including a description of the problem.

    The crash file is plain text and you can inspect or edit it to remove
    private information.
[tmp]%

 Traceback (most recent call last):
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line
853, in exception_to_return_code
     return the_callable(*args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line
1055, in run_bzr
     ret = run(*run_argv)
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line
661, in run_argv_aliases
     return self.run_direct(**all_cmd_args)
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line
665, in run_direct
     return self._operation.run_simple(*args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line
122, in run_simple
     self.cleanups, self.func, *args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line
156, in _do_with_cleanups
     result = func(*args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 1013, in run
     possible_transports=possible_transports, local=local)
   File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line
194, in write_locked
     result = unbound(self, *args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/workingtree.py", line
1629, in pull
     change_reporter=change_reporter)
   File "/usr/lib/python2.6/dist-packages/bzrlib/merge.py", line 1752,
in merge_inner
     return merger.do_merge()
   File "/usr/lib/python2.6/dist-packages/bzrlib/merge.py", line 658,
in do_merge
     merge = operation.run_simple()
   File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line
122, in run_simple
     self.cleanups, self.func, *args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line
156, in _do_with_cleanups
     result = func(*args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/merge.py", line 629,
in _do_merge_to
     merge.do_merge()
   File "/usr/lib/python2.6/dist-packages/bzrlib/merge.py", line 766,
in do_merge
     operation.run()
   File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 118, in run
     self.cleanups, self.func, self, *args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line
156, in _do_with_cleanups
     result = func(*args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/merge.py", line 772,
in _do_merge
     self._compute_transform()
   File "/usr/lib/python2.6/dist-packages/bzrlib/merge.py", line 814,
in _compute_transform
     file_status = self._do_merge_contents(file_id)
   File "/usr/lib/python2.6/dist-packages/bzrlib/merge.py", line 1302,
in _do_merge_contents
     hook_status, lines = hook.merge_contents(params)
   File "/usr/lib/python2.6/dist-packages/bzrlib/merge.py", line 1386,
in merge_contents
     return self._default_other_winner_merge(merge_hook_params)
   File "/usr/lib/python2.6/dist-packages/bzrlib/merge.py", line 1369,
in _default_other_winner_merge
     filter_tree_path=filter_tree_path)
   File "/usr/lib/python2.6/dist-packages/bzrlib/transform.py", line
2539, in create_from_tree
     raise AssertionError('Unknown kind %r' % kind)
 AssertionError: Unknown kind 'tree-reference'

UserEncoding: UTF-8
UserGroups: adm admin cdrom dialout kqemu lpadmin plugdev sambashare



More information about the bazaar mailing list