Initializing colocated branch fails with "set_reference() takes exactly 4 arguments"

Bug #634240 reported by Steve Shantz
104
This bug affects 15 people
Affects Status Importance Assigned to Milestone
Bazaar Explorer
Fix Released
High
Neil Martinsen-Burrell

Bug Description

I'm running Bazaar 2.2.0 on Windows XP.

Using Bazaar Explorer I was trying to initialize a new branch.
- The workspace model is Colocated branches
- no options selected
- format is 2.0 default

The following is the traceback generated when it attempts the initialization.

Run command: bzr new --colocated-branches --format 2a Z:/Verification/testautomation/TIME/repository/TimeCapsuleTrial
Unable to load plugin u'rebase'. It requested API version (2, 1, 0) of module <module 'bzrlib' from 'D:\Tools\Bazaar\lib\library.zip\bzrlib\__init__.pyo'> but the minimum exported version is (2, 2, 0), and the maximum is (2, 2, 0)
Created repository with treeless branches at Z:/Verification/testautomation/TIME/repository/TimeCapsuleTrial/.bzr/branches
Created branch at Z:/Verification/testautomation/TIME/repository/TimeCapsuleTrial/.bzr/branches/trunk
Created working tree at Z:/Verification/testautomation/TIME/repository/TimeCapsuleTrial
bzr: ERROR: exceptions.TypeError: set_reference() takes exactly 4 arguments (3 given)

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 911, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1111, in run_bzr
  File "bzrlib\commands.pyo", line 689, in run_argv_aliases
  File "bzrlib\commands.pyo", line 704, in run
  File "bzrlib\cleanup.pyo", line 135, in run_simple
  File "bzrlib\cleanup.pyo", line 165, in _do_with_cleanups
  File "D:/Tools/Bazaar/plugins\qbzr\lib\commands.py", line 767, in run
  File "D:/Tools/Bazaar/plugins\qbzr\lib\subprocess.py", line 869, in run_subprocess_command
  File "bzrlib\commands.pyo", line 1111, in run_bzr
  File "bzrlib\commands.pyo", line 689, in run_argv_aliases
  File "bzrlib\commands.pyo", line 704, in run
  File "bzrlib\cleanup.pyo", line 135, in run_simple
  File "bzrlib\cleanup.pyo", line 165, in _do_with_cleanups
  File "D:/Tools/Bazaar/plugins\explorer\lib\commands.py", line 203, in run
  File "D:/Tools/Bazaar/plugins\explorer\lib\workspace_models.py", line 89, in init_workspace
  File "D:/Tools/Bazaar/plugins\explorer\lib\workspace_models.py", line 304, in build
  File "D:/Tools/Bazaar/plugins\explorer\lib\workspace_models.py", line 311, in _switch_checkout
TypeError: set_reference() takes exactly 4 arguments (3 given)

bzr 2.2.0 on python 2.6.4 (Windows-XP-5.1.2600-SP3)
arguments: ['D:\\Tools\\Bazaar\\bzr.exe', 'qsubprocess', '--bencode', 'l3:new20:--colocated-branches8:--format2:2a63:Z:/Verification/testautomation/TIME/repository/TimeCapsuleTriale']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
  bzrtools D:\Tools\Bazaar\plugins\bzrtools [2.2.0]
  colo D:\Tools\Bazaar\plugins\colo [0.1.0]
  explorer D:\Tools\Bazaar\plugins\explorer [1.1b1]
  fastimport D:\Tools\Bazaar\plugins\fastimport [0.9.0dev]
  launchpad D:\Tools\Bazaar\plugins\launchpad [2.2.0]
  loom D:\Tools\Bazaar\plugins\loom [2.2.1dev]
  netrc_credential_store D:\Tools\Bazaar\plugins\netrc_credential_store [2.2.0]
  news_merge D:\Tools\Bazaar\plugins\news_merge [2.2.0]
  pipeline D:\Tools\Bazaar\plugins\pipeline [unknown]
  qbzr D:\Tools\Bazaar\plugins\qbzr [0.19.0]
  rewrite D:\Tools\Bazaar\plugins\rewrite [0.6.0]
  svn D:\Tools\Bazaar\plugins\svn [1.0.3]
  upload D:\Tools\Bazaar\plugins\upload [1.0.0dev]
  xmloutput D:\Tools\Bazaar\plugins\xmloutput [0.8.6]

*** 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
    including this traceback and a description of the problem.

Tags: bzr2.2

Related branches

Martin Pool (mbp)
affects: bzr → bzr-explorer
Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 634240] [NEW] Initializing colocated branch fails.

Launchpad Bug Tracker пишет:
> You have been subscribed to a public bug:
>
> I'm running Bazaar 2.2.0 on Windows XP.
>
> Traceback (most recent call last):
...
> File "D:/Tools/Bazaar/plugins\explorer\lib\workspace_models.py", line 311, in _switch_checkout
> TypeError: set_reference() takes exactly 4 arguments (3 given)

It used to work in bzr 2.1.2 and earlier, so I suppose bzr-explorer
needs to be updated to proper support bzr 2.2

As workaround: if you have bzr-colo plugin installed then please use
"All commands" button and select colo-init command here. It should
successfully init colocated workspace for you.

Revision history for this message
Alexander Belchenko (bialix) wrote : Re: Initializing colocated branch fails.

Indeed, bzr 2.2 breaks API regarding set_reference. Unfortunately there is no NEWS entry for such change.
Anyway, NEWS does not help the fix this problem, and bzr-explorer should be fixed here.

Changed in bzr-explorer:
status: New → Confirmed
importance: Undecided → High
tags: added: bzr2.2
Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 634240] [NEW] Initializing colocated branch fails.
Changed in bzr-explorer:
assignee: nobody → Neil Martinsen-Burrell (nmb)
assignee: Neil Martinsen-Burrell (nmb) → nobody
status: Confirmed → Fix Released
milestone: none → 1.1.2
assignee: nobody → Neil Martinsen-Burrell (nmb)
Martin Pool (mbp)
summary: - Initializing colocated branch fails.
+ Initializing colocated branch fails with "set_reference() takes exactly
+ 4 arguments"
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.