BZR 2.1.2 + SVN 1.7.7 + etckeeper on Debian Squeeze

JP Vossen jp at jpsdomain.org
Fri Nov 2 06:33:39 UTC 2012


Summary: BZR 2.1.2 + bzr-svn + SVN 1.7.7 + etckeeper on Debian Squeeze 
produce errors.

The "fix" was: aptitude purge bzr-svn

But that's not a very good fix.

Other info: /etc/ has both /etc/.bzr/ (etckeeper) and /etc/.svn/ 
(manual, back to 1998, from RCS to CVS to SVN (2005)... :)  So BZR + 
bzr-svn + SVN + etckeeper = bad; something steps on itself.

So, first, how do I force BZR to do BZR and not SVN things when both 
.bzr and .svn exist, but without uninstalling 'bzr-svn'?

Second, should I file a bug on this and if so is anything else required? 
  And is this a BZR bug (I think so) or possibly an etckeeper bug?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Details:

I'm using BZR 2.1.2 and etckeeper on Debian Squeeze.  But long before I 
did that, I was manually doing the same thing in SVN.  I've been having 
various minor problems with this, such as "aborting commit write group: 
PointlessCommit(No changes to commit)" errors, and the last time I 
looked at the (2012-03-22) I concluded that 'etckeeper's BZR was using 
/etc/.svn/ instead of /etc/.bzr/.  Mildly annoying, but I could live 
with the problems.

Then, I upgraded to SVN 1.7.7.  I did *not* however, touch /etc/.svn in 
any way with the new SVN client, which has a new work space format 
"WSNG" that is not backward compatible.

Now 'etckeeper' operations, including 'aptitude' updates, and the daily 
commits, all barf with somewhat ironic error (traceback at bottom):
	bzr: ERROR: exceptions.NameError: global name 
'ERR_WC_UNSUPPORTED_FORMAT' is not defined

Note that the error is coming from '...plugins/svn/workingtree.py' so it 
seems that even though both .bzr and .svn exist, .svn is taking 
precedence.  That's...interesting...

'bzr st' is OK, but note the modified and unknown stuff.  That should 
not be there if 'etckeeper' was working right.  But it isn't working 
right because 'bzr add -q .' is failing as noted.

/etc# bzr st .
modified:
   ntp.conf
unknown:
   apache2/conf.d/javascript-common.conf@
   apparmor.d/abstractions/
[...]

And note that SVN has *not* yet updated to WSNG:
/etc# svn st .
svn: E155036: Please see the 'svn upgrade' command
svn: E155036: Working copy '/etc' is too old (format 10, created by 
Subversion 1.6)


(I'm also not thrilled with the "etckeeper warning: hardlinked files 
could cause problems with bzr" err, but that's a matter for another 
time, and also survivable.)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Daily error from 'etckeeper's cron job (went away after 'aptitude purge 
bzr-svn'):

/etc/cron.daily/etckeeper:
bzr: ERROR: exceptions.NameError: global name 
'ERR_WC_UNSUPPORTED_FORMAT' is not defined

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 
659, in run
      no_recurse, action=action, save=not dry_run)
    File "/usr/lib/python2.6/dist-packages/bzrlib/mutabletree.py", line 
49, in tree_write_locked
      return unbound(self, *args, **kwargs)
    File "/usr/lib/python2.6/dist-packages/bzrlib/mutabletree.py", line 
467, in smart_add
      sub_branch = bzrdir.BzrDir.open(abspath)
    File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 841, 
in open
      return BzrDir.open_from_transport(t, _unsupported=_unsupported)
    File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 876, 
in open_from_transport
      return format.open(transport, _found=True)
    File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 2086, 
in open
      return self._open(transport)
    File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/format.py",
line 186, in _open
    File
"/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/workingtree.py",
line 1028, in __init__
NameError: global name 'ERR_WC_UNSUPPORTED_FORMAT' is not defined

bzr 2.1.2 on python 2.6.6 (Linux-2.6.32-5-686-i686-with-debian-6.0.6)
arguments: ['/usr/bin/bzr', 'add', '-q', '.']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
    bzrtools
/usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools [2.1.0]
    etckeeper
/usr/lib/python2.6/dist-packages/bzrlib/plugins/etckeeper [unknown]
    fastimport
/usr/lib/python2.6/dist-packages/bzrlib/plugins/fastimport [0.9.0dev]
    grep
/usr/lib/python2.6/dist-packages/bzrlib/plugins/grep [0.4.0]
    keywords             /root/.bazaar/plugins/keywords [unknown]
    launchpad
/usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [2.1.2]
    loggerhead
/usr/lib/python2.6/dist-packages/bzrlib/plugins/loggerhead [1.17.0]
    netrc_credential_store
/usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store
[2.1.2]
    news_merge
/usr/lib/python2.6/dist-packages/bzrlib/plugins/news_merge [2.1.2]
    search
/usr/lib/python2.6/dist-packages/bzrlib/plugins/search [1.7.0dev]
    svn
/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn [1.0.3]

*** 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.
etckeeper warning: bzr add failed
etckeeper warning: hardlinked files could cause problems with bzr:
./logcheck/ignore.d.server/JP_ignore
./logcheck/ignore.d.workstation/JP_ignore
Committing to: /etc/
aborting commit write group: PointlessCommit(No changes to commit)
bzr: ERROR: No changes to commit. Use --unchanged to commit anyhow.
run-parts: /etc/cron.daily/etckeeper exited with return code 3


Thanks,
JP
----------------------------|:::======|-------------------------------
JP Vossen, CISSP            |:::======|      http://bashcookbook.com/
My Account, My Opinions     |=========|      http://www.jpsdomain.org/
----------------------------|=========|-------------------------------
"Microsoft Tax" = the additional hardware & yearly fees for the add-on
software required to protect Windows from its own poorly designed and
implemented self, while the overhead incidentally flattens Moore's Law.



More information about the bazaar mailing list