"Can't get entries of a non-directory"

Bug #290664 reported by Dan Watkins
4
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
Fix Released
Undecided
Jelmer Vernooij

Bug Description

$ bzr branch svn://svn.debian.org/svn/pkg-voip/freepbx/trunk
bzr: ERROR: bzrlib.plugins.svn.core.SubversionException: ("Can't get entries of non-directory", 160016)

Traceback (most recent call last):
  File "/home/dwa/devel/bzr.dev/bzrlib/commands.py", line 893, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/home/dwa/devel/bzr.dev/bzrlib/commands.py", line 839, in run_bzr
    ret = run(*run_argv)
  File "/home/dwa/devel/bzr.dev/bzrlib/commands.py", line 539, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/dwa/devel/bzr.dev/bzrlib/builtins.py", line 980, in run
    force_new_repo=standalone)
  File "/home/dwa/.bazaar/plugins/svn/remote.py", line 64, in sprout
    return super(SvnRemoteAccess, self).sprout(*args, **kwargs)
  File "/home/dwa/devel/bzr.dev/bzrlib/bzrdir.py", line 1124, in sprout
    result, revision_id=_mod_revision.NULL_REVISION)
  File "/home/dwa/.bazaar/plugins/svn/branch.py", line 495, in sprout
    self.copy_content_into(result, revision_id=revision_id)
  File "/home/dwa/devel/bzr.dev/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/home/dwa/devel/bzr.dev/bzrlib/branch.py", line 736, in copy_content_into
    self.tags.merge_to(destination.tags)
  File "/home/dwa/devel/bzr.dev/bzrlib/tag.py", line 211, in merge_to
    source_dict = self.get_tag_dict()
  File "/home/dwa/.bazaar/plugins/svn/tags.py", line 102, in get_tag_dict
    mapping=self.branch.mapping)
  File "/home/dwa/devel/bzr.dev/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/home/dwa/.bazaar/plugins/svn/repository.py", line 901, in find_tags
    layout=layout, mapping=mapping, from_revnum=0, to_revnum=revnum)
  File "/home/dwa/devel/bzr.dev/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/home/dwa/.bazaar/plugins/svn/repository.py", line 875, in find_tags_between
    tags[bp] = self.generate_revision_id(revnum, bp, mapping, revprops=revprops)
  File "/home/dwa/.bazaar/plugins/svn/repository.py", line 631, in generate_revision_id
    return self.get_revmap().get_revision_id(revnum, path, mapping, revprops, changed_fileprops)
  File "/home/dwa/.bazaar/plugins/svn/revids.py", line 142, in get_revision_id
    revid = self.actual.get_revision_id(revnum, path, mapping, changed_fileprops, revprops)
  File "/home/dwa/.bazaar/plugins/svn/revids.py", line 37, in get_revision_id
    (bzr_revno, revid) = mapping.get_revision_id(path, revprops, fileprops)
  File "/home/dwa/.bazaar/plugins/svn/mapping.py", line 561, in get_revision_id
    text = fileprops.get(SVN_PROP_BZR_REVISION_ID+str(self.scheme), None)
  File "/home/dwa/.bazaar/plugins/svn/logwalker.py", line 68, in get
    self._ensure_init()
  File "/home/dwa/.bazaar/plugins/svn/logwalker.py", line 38, in _ensure_init
    self.dict = self.create_fn(*self.args)
  File "/home/dwa/.bazaar/plugins/svn/branchprops.py", line 66, in _real_get_changed_properties
    current = self.get_properties(path, revnum)
  File "/home/dwa/.bazaar/plugins/svn/branchprops.py", line 42, in get_properties
    revnum)
  File "/home/dwa/.bazaar/plugins/svn/transport.py", line 357, in get_dir
    return conn.get_dir(path, revnum, kind)
SubversionException: ("Can't get entries of non-directory", 160016)

bzr 1.9dev on python 2.5.2 (linux2)
arguments: ['/home/dwa/bin/bzr', 'branch', 'svn://svn.debian.org/svn/pkg-voip/freepbx/trunk']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_GB.UTF-8'
plugins:
  builddeb /usr/lib/python2.5/site-packages/bzrlib/plugins/builddeb [0.95.0dev0]
  bzrtools /home/dwa/.bazaar/plugins/bzrtools [1.8.0]
  fastimport /home/dwa/.bazaar/plugins/fastimport [unknown]
  gtk /home/dwa/.bazaar/plugins/gtk [0.96.0dev1]
  launchpad /home/dwa/devel/bzr.dev/bzrlib/plugins/launchpad [unknown]
  rebase /home/dwa/.bazaar/plugins/rebase [0.4.1]
  svn /home/dwa/.bazaar/plugins/svn [0.4.14dev0]
  upload /usr/lib/python2.5/site-packages/bzrlib/plugins/upload [0.1.0]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

$ bzr svn-branching-scheme svn://svn.debian.org/svn/pkg-voip/freepbx/trunk
*/trunk
*/branches/*

Revision history for this message
Dan Watkins (oddbloke) wrote :

Interestingly, using svn://svn.debian.org/svn/pkg-voip/freepbx/trunk/debian seems to work fine.

Jelmer Vernooij (jelmer)
Changed in bzr-svn:
assignee: nobody → jelmer
milestone: none → 0.4.14
status: New → Fix Committed
Jelmer Vernooij (jelmer)
Changed in bzr-svn:
status: Fix Committed → Fix Released
Revision history for this message
CodyC (cody-casterline) wrote :

The status of this bug is "fix released" for 0.4.14, but I'm using that version and get the same error as above when branching from a private repository.

bzr 1.9rc1
bzr-svn 0.4.14

Revision history for this message
CodyC (cody-casterline) wrote :
Download full text (3.8 KiB)

Doh, I suppose a traceback would be useful:

Wed 2008-11-05 13:07:33 -0500
0.019 bzr arguments: [u'branch', u'file:///home/codyc/svn/app/legacy/trunk/']
0.019 looking for plugins in /home/codyc/.bazaar/plugins
0.052 bzr-svn: using Subversion 1.4.6 ()
0.060 looking for plugins in /usr/lib/python2.5/site-packages/bzrlib/plugins
0.076 encoding stdout as sys.stdout encoding 'UTF-8'
0.105 opening SVN RA connection to 'file:///home/codyc/svn/app/legacy/trunk'
0.459 creating branch <bzrlib.branch.BzrBranchFormat6 object at 0xf1e0d0> in file:///home/codyc/bzr/app/trunk/.bzr/
4.317 Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 893, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 839, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 539, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 980, in run
    force_new_repo=standalone)
  File "/home/codyc/.bazaar/plugins/svn/remote.py", line 64, in sprout
    return super(SvnRemoteAccess, self).sprout(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 1124, in sprout
    result, revision_id=_mod_revision.NULL_REVISION)
  File "/home/codyc/.bazaar/plugins/svn/branch.py", line 495, in sprout
    self.copy_content_into(result, revision_id=revision_id)
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 748, in copy_content_into
    self.tags.merge_to(destination.tags)
  File "/usr/lib/python2.5/site-packages/bzrlib/tag.py", line 211, in merge_to
    source_dict = self.get_tag_dict()
  File "/home/codyc/.bazaar/plugins/svn/tags.py", line 102, in get_tag_dict
    mapping=self.branch.mapping)
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/home/codyc/.bazaar/plugins/svn/repository.py", line 904, in find_tags
    layout=layout, mapping=mapping, from_revnum=0, to_revnum=revnum)
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/home/codyc/.bazaar/plugins/svn/repository.py", line 873, in find_tags_between
    tags[p] = self.generate_revision_id(tr, tp, mapping)
  File "/home/codyc/.bazaar/plugins/svn/repository.py", line 631, in generate_revision_id
    return self.get_revmap().get_revision_id(revnum, path, mapping, revprops, changed_fileprops)
  File "/home/codyc/.bazaar/plugins/svn/revids.py", line 142, in get_revision_id
    revid = self.actual.get_revision_id(revnum, path, mapping, changed_fileprops, revprops)
  File "/home/codyc/.bazaar/plugins/svn/revids.py", line 37, in get_revision_id
    (bzr_revno, revid) = mapping.get_revision_id(path, revprops, fileprops)
  File "/home/codyc/.bazaar/plugins/svn/mapping.py", line 561, in get_revision_id
    text = fileprops.get(SVN_PROP_BZR_REVISION_ID+str(self.s...

Read more...

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

This is a different bug with a different backtrace - please file a new bug report.

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Never mind, already fixed in the 0.4 branch.

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.