TypeError: update() got an unexpected keyword argument 'revision' in svn checkout

Bug #537387 reported by Alex Lewis on 2010-03-11
94
This bug affects 13 people
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
Medium
Jelmer Vernooij
bzr-svn (Ubuntu)
High
Jelmer Vernooij

Bug Description

Plaform - Windows XP
Bazaar - Standalone 2.1.0-2 exe.

Used Bazaar to checkout code from company SVN repository. Loaded up BzrExplorer which said that local copy was out of date and recommended an update. Invoked update got the following error trace. I've also tried running an update via the command line and got what looks like the same error but with a smaller stack trace (I guess because Explorer is not running the command). The steps below comment on using BzrExplorer however the same can be achieved by just using the command line. This may be just a bug with bzr-svn but I wasn't sure so I thought I would raise it here first (hope that was the right thing to do).

I have also attached part of my .bzr.log however I did rename a few items as I'm doing this with a work repository and hence do not wish to divulge too much information.

Steps:
  - Developement work is done in "C:\dev\projects"
  - Created new folder in "C:\dev\projects" - projectX
  - Used BzrExplorer (opened in projectX dir) to initialise a shared repo. (.bzr folder appeared under projectX).
  - Used BzrExplorer to checkout the trunk/root branch of projectX from the SVN repository. (In our case our trunks are called "root").
  - ....changes happen in SVN
  - Open BzrExplorer in the projectX/root directory.
  - BzrExplorer comments that the working copy is out-of-date and should be updated.
  - Use "update" button to run an update.
  - After a few seconds the following error is displayed.

Run command: bzr update
bzr: ERROR: exceptions.TypeError: update() got an unexpected keyword argument 'revision'

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 853, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1055, in run_bzr
  File "bzrlib\commands.pyo", line 661, in run_argv_aliases
  File "bzrlib\commands.pyo", line 665, in run_direct
  File "bzrlib\cleanup.pyo", line 122, in run_simple
  File "bzrlib\cleanup.pyo", line 156, in _do_with_cleanups
  File "C:/buildtools/Bazaar/plugins\qbzr\lib\commands.py", line 788, in run
  File "C:/buildtools/Bazaar/plugins\qbzr\lib\subprocess.py", line 786, in run_subprocess_command
  File "bzrlib\commands.pyo", line 1055, in run_bzr
  File "bzrlib\commands.pyo", line 661, in run_argv_aliases
  File "bzrlib\commands.pyo", line 665, in run_direct
  File "bzrlib\cleanup.pyo", line 122, in run_simple
  File "bzrlib\cleanup.pyo", line 156, in _do_with_cleanups
  File "bzrlib\builtins.pyo", line 1427, in run
TypeError: update() got an unexpected keyword argument 'revision'

bzr 2.1.0 on python 2.5.4 (Windows-XP-5.1.2600-SP3)
arguments: ['C:\\buildtools\\Bazaar\\bzr.exe', 'qsubprocess', '--bencode', 'l6:updatee']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
  bzrtools C:\buildtools\Bazaar\plugins\bzrtools [2.1.0]
  explorer C:\buildtools\Bazaar\plugins\explorer [1.0.1]
  launchpad C:\buildtools\Bazaar\plugins\launchpad [2.1.0]
  netrc_credential_store C:\buildtools\Bazaar\plugins\netrc_credential_store [2.1.0]
  news_merge C:\buildtools\Bazaar\plugins\news_merge [2.1.0]
  qbzr C:\buildtools\Bazaar\plugins\qbzr [0.18.3]
  rebase C:\buildtools\Bazaar\plugins\rebase [0.5.5]
  svn C:\buildtools\Bazaar\plugins\svn [1.0.2]
  upload C:\buildtools\Bazaar\plugins\upload [1.0.0dev]
  xmloutput C:\buildtools\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.

------------------------------

Here is also the error trace when just using the command line...

bzr: ERROR: exceptions.TypeError: update() got an unexpected keyword argument 'revision'

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 853, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1055, in run_bzr
  File "bzrlib\commands.pyo", line 661, in run_argv_aliases
  File "bzrlib\commands.pyo", line 665, in run_direct
  File "bzrlib\cleanup.pyo", line 122, in run_simple
  File "bzrlib\cleanup.pyo", line 156, in _do_with_cleanups
  File "bzrlib\builtins.pyo", line 1427, in run
TypeError: update() got an unexpected keyword argument 'revision'

bzr 2.1.0 on python 2.5.4 (Windows-XP-5.1.2600-SP3)
arguments: ['bzr', 'update']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
  bzrtools C:\buildtools\Bazaar\plugins\bzrtools [2.1.0]
  explorer C:\buildtools\Bazaar\plugins\explorer [1.0.1]
  launchpad C:\buildtools\Bazaar\plugins\launchpad [2.1.0]
  netrc_credential_store C:\buildtools\Bazaar\plugins\netrc_credential_store [2.1.0]
  news_merge C:\buildtools\Bazaar\plugins\news_merge [2.1.0]
  qbzr C:\buildtools\Bazaar\plugins\qbzr [0.18.3]
  rebase C:\buildtools\Bazaar\plugins\rebase [0.5.5]
  svn C:\buildtools\Bazaar\plugins\svn [1.0.2]
  upload C:\buildtools\Bazaar\plugins\upload [1.0.0dev]
  xmloutput C:\buildtools\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.

Few additional things:
  - The checkout was lightweight (explorer seems to default to --lightweight).
  - The SVN repository is large and contains a lot of revisions.

Martin Pool (mbp) wrote :

This sounds familiar but I can't find a dupe for it.

summary: - Bazaar crash on update of (bzr-svn) checkout
+ TypeError: update() got an unexpected keyword argument 'revision' in svn
+ checkout
affects: bzr → bzr-svn
Jelmer Vernooij (jelmer) on 2010-05-21
Changed in bzr-svn:
status: New → Triaged
status: Triaged → Fix Released
importance: Undecided → Medium
Jelmer Vernooij (jelmer) on 2010-11-24
Changed in bzr-svn:
status: Fix Released → Triaged
Jochen Garcke (jochen-garcke) wrote :

Did a checkout of bzr-svn from the repository to have the newest version.

bzr update
bzr: ERROR: exceptions.TypeError: update() got an unexpected keyword argument 'revision'

Mi 2010-12-29 18:24:45 +0100
0.110 bazaar version: 2.1.1
0.110 bzr arguments: [u'update']
0.129 looking for plugins in /home/garcke/.bazaar/plugins
0.348 looking for plugins in /usr/lib/python2.6/dist-packages/bzrlib/plugins
0.428 encoding stdout as sys.stdout encoding 'UTF-8'
0.516 bzr-svn: using Subversion 1.6.6 (), subvertpy 0.7.2
7.047 potential branching layouts: [('root', 252), ('trunk0', 49)]
7.050 Guessed repository layout: RootLayout(), guess layout to use: CustomLayout(['pydjango'],[])
16.796 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 1427, in run
    old_tip=old_tip)
TypeError: update() got an unexpected keyword argument 'revision'

17.028 Transferred: 16KiB (1.1K/s r:0K w:0K u:16K)
17.029 return code 4

Jelmer Vernooij (jelmer) wrote :

Fixed in trunk.

Changed in bzr-svn:
status: Triaged → Fix Committed
Jelmer Vernooij (jelmer) on 2011-01-28
Changed in bzr-svn:
milestone: none → 1.1.0
assignee: nobody → Jelmer Vernooij (jelmer)
Jelmer Vernooij (jelmer) on 2011-06-16
Changed in bzr-svn (Ubuntu):
status: New → Triaged
importance: Undecided → High
Jelmer Vernooij (jelmer) on 2011-06-18
Changed in bzr-svn (Ubuntu):
status: Triaged → In Progress
assignee: nobody → Jelmer Vernooij (jelmer)
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package bzr-svn - 1.1.0~bzr3767-1

---------------
bzr-svn (1.1.0~bzr3767-1) unstable; urgency=low

  * Run testsuite as part of the build.
  * New upstream snapshot.
   + Now requires subvertpy >= 0.8.0.
   + Compatible with bzr 2.4. LP: #788533, Closes: #601307, #629785, #628973
   + Adds support for revision argument to WorkingTree.update(). LP: #537387
  * Support running the test suite in parallel.
  * Use dh_python2. Closes: #616767
  * Switch to debhelper 7, drop cdbs.
  * Add build dependency on python-bzrlib.tests for newer versions of bzr.
  * Bump standards version to 3.9.2 (no changes).
  * Make python-tdb a build dependency so the relevant test can be run.
 -- Jelmer Vernooij <email address hidden> Sat, 23 Jul 2011 09:58:02 +0000

Changed in bzr-svn (Ubuntu):
status: In Progress → Fix Released
Jelmer Vernooij (jelmer) on 2011-08-26
Changed in bzr-svn:
status: Fix Committed → Fix Released
Hobson Lane (hobs) wrote :

The fix hasn't migrated to the Ubuntu canonical apt package yet. I recently had this error using bzr on Ubuntu 11.04.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers