fail on very small commit in lp:zope.testing

Bug #588989 reported by Justin Alan Ryan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

With a current chckout of lp:zope.testing, I get this error trying to commit a very small fix - removing $Id$ markers:

  === modified file 'src/zope/testing/testrunner/logsupport.py'
--- src/zope/testing/testrunner/logsupport.py 2010-04-06 02:02:54 +0000
+++ src/zope/testing/testrunner/logsupport.py 2010-06-03 01:12:45 +0000
@@ -17,8 +17,6 @@

 The module name is not 'logging' because of a name collision with Python's
 logging module.
-
-$Id: __init__.py 86218 2008-05-03 1bzr: ERROR: bzrlib.errors.NoSuchRevision: CHKInventoryRepository('file:///srv/www/dev/zope/zope.testing/.bzr/repository/') has no revision sidnei.da.silva@canonical.
com-20100512132059-ee3s9rbz1w5wcb5o

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 842, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1037, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 654, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1052, in ignore_pipe
    result = func(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 1917, in run
    extra_trees=extra_trees, using=using)
  File "/usr/lib/python2.6/dist-packages/bzrlib/diff.py", line 432, in show_diff_trees
    return differ.show_diff(specific_files, extra_trees)
  File "/usr/lib/python2.6/dist-packages/bzrlib/diff.py", line 839, in show_diff
    return self._show_diff(specific_files, extra_trees)
  File "/usr/lib/python2.6/dist-packages/bzrlib/diff.py", line 899, in _show_diff
    self._diff(file_id, oldpath, newpath, kind[0], kind[1])
  File "/usr/lib/python2.6/dist-packages/bzrlib/diff.py", line 925, in _diff
    new_path, old_kind, new_kind)
  File "/usr/lib/python2.6/dist-packages/bzrlib/diff.py", line 491, in _diff_many
    new_kind)
  File "/usr/lib/python2.6/dist-packages/bzrlib/diff.py", line 613, in diff
    old_date = _patch_header_date(self.old_tree, file_id, old_path)
  File "/usr/lib/python2.6/dist-packages/bzrlib/diff.py", line 444, in _patch_header_date
    mtime = tree.get_file_mtime(file_id, path)
  File "/usr/lib/python2.6/dist-packages/bzrlib/workingtree_4.py", line 1761, in get_file_mtime
    return self._repository.get_revision(last_changed_revision).timestamp
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/repofmt/knitrepo.py", line 208, in get_revision
    return self.get_revision_reconcile(revision_id)
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 1846, in get_revision_reconcile
    return self._get_revisions([revision_id])[0]
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 1863, in _get_revisions
    raise errors.NoSuchRevision(self, revid)
NoSuchRevision: CHKInventoryRepository('file:///srv/www/dev/zope/zope.testing/.bzr/repository/') has no revision <email address hidden>

bzr 2.0.0 on python 2.6.4rc2 (Linux-2.6.32.12-linode25-i686-with-Ubuntu-9.10-karmic)
arguments: ['/usr/bin/bzr', 'diff']
encoding: 'ANSI_X3.4-1968', fsenc: 'ANSI_X3.4-1968', lang: None
plugins:
  launchpad /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [2.0.0]
  netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [2.0.0]
  svn /usr/lib/python2.6/dist-packages/bzrlib/plugins/svn [1.0.0dev]

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

Revision history for this message
Justin Alan Ryan (justizin) wrote :
Download full text (3.6 KiB)

Also, making similar changes to zope.testrunner:

=== modified file 'bootstrap.py'
--- bootstrap.py 2010-04-19 07:02:20 +0000
+++ bootstrap.py 2010-06-03 01:39:41 +0000
@@ -16,8 +16,6 @@
 Simply run this script in a directory containing a buildout.cfg.
 The script accepts buildout command-line options, so you can
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1037, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 654, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1052, in ignore_pipe
    result = func(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 1917, in run
    extra_trees=extra_trees, using=using)
  File "/usr/lib/python2.6/dist-packages/bzrlib/diff.py", line 432, in show_diff_trees
    return differ.show_diff(specific_files, extra_trees)
  File "/usr/lib/python2.6/dist-packages/bzrlib/diff.py", line 839, in show_diff
    return self._show_diff(specific_files, extra_trees)
  File "/usr/lib/python2.6/dist-packages/bzrlib/diff.py", line 899, in _show_diff
    self._diff(file_id, oldpath, newpath, kind[0], kind[1])
  File "/usr/lib/python2.6/dist-packages/bzrlib/diff.py", line 925, in _diff
    new_path, old_kind, new_kind)
  File "/usr/lib/python2.6/dist-packages/bzrlib/diff.py", line 491, in _diff_many
    new_kind)
  File "/usr/lib/python2.6/dist-packages/bzrlib/diff.py", line 613, in diff
    old_date = _patch_header_date(self.old_tree, file_id, old_path)
  File "/usr/lib/python2.6/dist-packages/bzrlib/diff.py", line 444, in _patch_header_date
    mtime = tree.get_file_mtime(file_id, path)
  File "/usr/lib/python2.6/dist-packages/bzrlib/workingtree_4.py", line 1761, in get_file_mtime
    return self._repository.get_revision(last_changed_revision).timestamp
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/repofmt/knitrepo.py", line 208, in get_revision
    return self.get_revision_reconcile(revision_id)
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 1846, in get_revision_reconcile
    return self._get_revisions([revision_id])[0]
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 1863, in _get_revisions
    raise errors.NoSuchRevision(self, revid)
NoSuchRevision: CHKInventoryRepository('file:///srv/www/dev/zope/zope.testrunner/.bzr/repository/') has no revision <email address hidden>

bzr 2.0.0 on python 2.6.4rc2 (Linux-2.6.32.12-linode25-i686-with-Ubuntu-9.10-karmic)
arguments: ['/usr/bin/bzr', 'diff']
encoding: 'ANSI_X3.4-1968', fsenc: 'ANSI_X3.4-1968', lang: None
plugins:
  launchpad /usr/lib/python2.6/dist-packages/bz...

Read more...

Revision history for this message
Justin Alan Ryan (justizin) wrote :

Apologies, in both of these cases, this is output from bzr diff.

Revision history for this message
Justin Alan Ryan (justizin) wrote :

For perspective, I used the same method to perform the same change to a total of 76 projects today:

  https://bugs.launchpad.net/zope.viewlet/+bug/569541

Only zope.testing and zope.testrunner, afaict, had this issue.

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 588989] Re: fail on very small commit in lp:zope.testing

Hi Justin,

On Thu, 2010-06-03 at 01:48 +0000, Justin Alan Ryan wrote:
> *** This bug is a duplicate of bug 295611 ***
> https://bugs.launchpad.net/bugs/295611
This is a dupoe of a bug that's been fixed in Bazaar 2.1.

CHeers,

Jelmer

Revision history for this message
Robert Collins (lifeless) wrote :

Jelmer, I know it looks very similar, but I'm at a total loss why that
revision - which is new - would be a ghost.

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.