Comment 2 for bug 702870

Revision history for this message
Patrick Noffke (patrick-noffke) wrote : Re: bzr crashed on push to a subversion repository

I added some debug info to commit.py from ~/.bazaar/plugins/svn. Note that I changed the mutter method to print using trace.note. I'm not sure if there's a way to get this to print to stdout otherwise, or what is the preferred method for getting debug logs.

I will also attach my version of commit.py in a follow up post.

Here is the output of running bzr push with that info.

$ bzr push
Using saved push location: svn+http://smartrack/svn/AVS/trunk
DEBUG - Starting commit
DEBUG - 1
DEBUG - 2
DEBUG - 3
HTTP smartrack username: pnoffke
<http://smartrack:80> Quad Source Code Repository pnoffke password:
DEBUG - 4
DEBUG - 5
DEBUG (open_branch_editors) - 1
DEBUG (open_branch_editors) - 2
DEBUG (open_branch_editors) - 3
DEBUG (open_branch_editors) - 4
DEBUG (open_branch_editors) - 5
DEBUG - Except 1
bzr: ERROR: subvertpy.SubversionException: ("File or directory '.' is out of date; try updating", 160024)

Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/bzrlib/commands.py", line 912, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/bzrlib/commands.py", line 1112, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib64/python2.7/site-packages/bzrlib/commands.py", line 690, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib64/python2.7/site-packages/bzrlib/commands.py", line 705, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/bzrlib/builtins.py", line 1161, in run
    use_existing_dir=use_existing_dir)
  File "/usr/lib64/python2.7/site-packages/bzrlib/push.py", line 139, in _show_push_branch
    remember, create_prefix)
  File "/home/pnoffke/.bazaar/plugins/svn/remote.py", line 289, in push_branch
    overwrite=overwrite)
  File "/usr/lib64/python2.7/site-packages/bzrlib/branch.py", line 1077, in push
    *args, **kwargs)
  File "/home/pnoffke/.bazaar/plugins/svn/branch.py", line 1016, in push
    override_svn_revprops=_override_svn_revprops)
  File "/home/pnoffke/.bazaar/plugins/svn/branch.py", line 926, in _update_revisions
    push_merged, overwrite=overwrite)
  File "/home/pnoffke/.bazaar/plugins/svn/push.py", line 217, in push_branch
    overwrite=overwrite)
  File "/home/pnoffke/.bazaar/plugins/svn/push.py", line 239, in push
    override_svn_revprops=target_config.get_override_svn_revprops())
  File "/home/pnoffke/.bazaar/plugins/svn/push.py", line 153, in push_revision_tree
    revid = builder.commit(rev.message)
  File "/home/pnoffke/.bazaar/plugins/svn/errors.py", line 146, in convert
    raise convert_error(e)
SubversionException: ("File or directory '.' is out of date; try updating", 160024)

bzr 2.2.1 on python 2.7.0 (Linux-2.6.35.11-83.fc14.x86_64-x86_64-with-fedora-14-Laughlin)
arguments: ['/usr/bin/bzr', 'push']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  bash_completion /usr/lib64/python2.7/site-packages/bzrlib/plugins/bash_completion [2.2.1]
  extmerge /home/pnoffke/.bazaar/plugins/extmerge [unknown]
  launchpad /usr/lib64/python2.7/site-packages/bzrlib/plugins/launchpad [2.2.1]
  netrc_credential_store /usr/lib64/python2.7/site-packages/bzrlib/plugins/netrc_credential_store [2.2.1]
  news_merge /usr/lib64/python2.7/site-packages/bzrlib/plugins/news_merge [2.2.1]
  qbzr /usr/lib/python2.7/site-packages/bzrlib/plugins/qbzr [0.19.3]
  rewrite /home/pnoffke/.bazaar/plugins/rewrite [0.6.1dev]
  svn /home/pnoffke/.bazaar/plugins/svn [1.0.4]

*** 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.
[pnoffke@dingofarm Source]$
[pnoffke@dingofarm Source]$
[pnoffke@dingofarm Source]$
[pnoffke@dingofarm Source]$
[pnoffke@dingofarm Source]$ bzr push
Using saved push location: svn+http://smartrack/svn/AVS/trunk
DEBUG - Starting commit
DEBUG - 1
DEBUG - 2
DEBUG - 3
HTTP smartrack username: pnoffke
<http://smartrack:80> Quad Source Code Repository pnoffke password:
DEBUG - 4
DEBUG - 5
opening branch ['trunk'] (base 'http://smartrack/svn/AVS/trunk':866)
DEBUG (open_branch_editors) - 1
DEBUG (open_branch_editors) - 2
DEBUG (open_branch_editors) - 3
DEBUG (open_branch_editors) - 4
DEBUG (open_branch_editors) - 5
removing branch dir 'trunk'
DEBUG - Except 1
bzr: ERROR: subvertpy.SubversionException: ("File or directory '.' is out of date; try updating", 160024)

Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/bzrlib/commands.py", line 912, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/bzrlib/commands.py", line 1112, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib64/python2.7/site-packages/bzrlib/commands.py", line 690, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib64/python2.7/site-packages/bzrlib/commands.py", line 705, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/bzrlib/builtins.py", line 1161, in run
    use_existing_dir=use_existing_dir)
  File "/usr/lib64/python2.7/site-packages/bzrlib/push.py", line 139, in _show_push_branch
    remember, create_prefix)
  File "/home/pnoffke/.bazaar/plugins/svn/remote.py", line 289, in push_branch
    overwrite=overwrite)
  File "/usr/lib64/python2.7/site-packages/bzrlib/branch.py", line 1077, in push
    *args, **kwargs)
  File "/home/pnoffke/.bazaar/plugins/svn/branch.py", line 1016, in push
    override_svn_revprops=_override_svn_revprops)
  File "/home/pnoffke/.bazaar/plugins/svn/branch.py", line 926, in _update_revisions
    push_merged, overwrite=overwrite)
  File "/home/pnoffke/.bazaar/plugins/svn/push.py", line 217, in push_branch
    overwrite=overwrite)
  File "/home/pnoffke/.bazaar/plugins/svn/push.py", line 239, in push
    override_svn_revprops=target_config.get_override_svn_revprops())
  File "/home/pnoffke/.bazaar/plugins/svn/push.py", line 153, in push_revision_tree
    revid = builder.commit(rev.message)
  File "/home/pnoffke/.bazaar/plugins/svn/errors.py", line 146, in convert
    raise convert_error(e)
SubversionException: ("File or directory '.' is out of date; try updating", 160024)

bzr 2.2.1 on python 2.7.0 (Linux-2.6.35.11-83.fc14.x86_64-x86_64-with-fedora-14-Laughlin)
arguments: ['/usr/bin/bzr', 'push']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  bash_completion /usr/lib64/python2.7/site-packages/bzrlib/plugins/bash_completion [2.2.1]
  extmerge /home/pnoffke/.bazaar/plugins/extmerge [unknown]
  launchpad /usr/lib64/python2.7/site-packages/bzrlib/plugins/launchpad [2.2.1]
  netrc_credential_store /usr/lib64/python2.7/site-packages/bzrlib/plugins/netrc_credential_store [2.2.1]
  news_merge /usr/lib64/python2.7/site-packages/bzrlib/plugins/news_merge [2.2.1]
  qbzr /usr/lib/python2.7/site-packages/bzrlib/plugins/qbzr [0.19.3]
  rewrite /home/pnoffke/.bazaar/plugins/rewrite [0.6.1dev]
  svn /home/pnoffke/.bazaar/plugins/svn [1.0.4]

*** 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.