bzr: ERROR: exceptions.TypeError: clone() got an unexpected keyword argument 'repository_policy'

Bug #400978 reported by Neil Wilson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Invalid
Undecided
Unassigned

Bug Description

neil@neil-laptop:~/WinePulse/wp-dev$ bzr push --stacked-on=http://code.launchpad.net/~vcs-imports/wine/git-trunk lp:~neil-aldur/wine/wp-dev
http://code.launchpad.net/%7Evcs-imports/wine/git-trunk/ is redirected to https+urllib://code.launchpad.net/%7Evcs-imports/wine/git-trunk/
bzr: ERROR: exceptions.TypeError: clone() got an unexpected keyword argument 'repository_policy'

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 716, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 911, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 547, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 1033, in run
    use_existing_dir=use_existing_dir)
  File "/usr/lib/python2.6/dist-packages/bzrlib/push.py", line 105, in _show_push_branch
    revision_id=revision_id, stacked_on=stacked_on)
  File "/usr/lib/python2.6/dist-packages/bzrlib/branch.py", line 1066, in create_clone_on_transport
    revision_id=revision_id, stacked_on=stacked_on)
  File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 238, in clone_on_transport
    repository_policy=repository_policy)
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
TypeError: clone() got an unexpected keyword argument 'repository_policy'

bzr 1.13.1 on python 2.6.2 (linux2)
arguments: ['/usr/bin/bzr', 'push', '--stacked-on=http://code.launchpad.net/~vcs-imports/wine/git-trunk', 'lp:~neil-aldur/wine/wp-dev']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_GB.UTF-8'
plugins:
  builddeb /usr/lib/python2.6/dist-packages/bzrlib/plugins/builddeb [unknown]
  bzrtools /usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools [1.13]
  launchpad /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [unknown]
  loom /usr/lib/python2.6/dist-packages/bzrlib/plugins/loom [1.4dev]
  netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [unknown]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

Revision history for this message
Andrew Bennetts (spiv) wrote :

I'm not 100% sure, but I think this bug is likely to be fixed in a newer release of bzr. (Unfortunately in this case the traceback doesn't tell us precisely where the error is, so it's hard to be certain).

Could you try upgrading to 1.16.1 or newer and see if that fixes it?

[Also, the --stacked-on URL ought to be at http://bazaar.launchpad.net/..., not code.launchpad.net. I think it probably should work anyway, but perhaps changing it will workaround this bug? In fact, I'll talk to a launchpad-code dev now about getting that branch set as the development focus so you won't have to specify the stack-on location manually.]

Changed in bzr:
status: New → Incomplete
Revision history for this message
Andrew Bennetts (spiv) wrote :

[The launchpad-code dev says the maintainer of Wine in Launchpad, https://launchpad.net/~scottritchie, would need to set that git import as the development focus if you want that.]

Revision history for this message
Neil Wilson (neil-aldur) wrote : Re: [Bug 400978] Re: bzr: ERROR: exceptions.TypeError: clone() got an unexpected keyword argument 'repository_policy'

The whole thing works fine if you *don't* use the Loom plugin (other
than the lack of 'lp:' shortcuts).

2009/7/20 Andrew Bennetts <email address hidden>:
> [The launchpad-code dev says the maintainer of Wine in Launchpad,
> https://launchpad.net/~scottritchie, would need to set that git import
> as the development focus if you want that.]
>
> --
> bzr: ERROR: exceptions.TypeError: clone() got an unexpected keyword argument 'repository_policy'
> https://bugs.launchpad.net/bugs/400978
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
Neil Wilson

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 400978] Re: bzr: ERROR: exceptions.TypeError: clone() got an unexpected keyword argument 'repository_policy'

On Mon, 2009-07-20 at 07:21 +0000, Neil Wilson wrote:
> The whole thing works fine if you *don't* use the Loom plugin (other
> than the lack of 'lp:' shortcuts).

Huh? the loom plugin has been fixed for some time...

-Rob

Revision history for this message
Neil Wilson (neil-aldur) wrote : Re: [Bug 400978] Re: bzr: ERROR: exceptions.TypeError: clone() got an unexpected keyword argument 'repository_policy'

This is with the standard Jaunty packages.

2009/7/20 Robert Collins <email address hidden>:
> On Mon, 2009-07-20 at 07:21 +0000, Neil Wilson wrote:
>> The whole thing works fine if you *don't* use the Loom plugin (other
>> than the lack of 'lp:' shortcuts).
>
> Huh? the loom plugin has been fixed for some time...
>
> -Rob
>
> --
> bzr: ERROR: exceptions.TypeError: clone() got an unexpected keyword argument 'repository_policy'
> https://bugs.launchpad.net/bugs/400978
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
Neil Wilson

Neil Wilson (neil-aldur)
Changed in bzr:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.