SubversionException: ("Can't get entries of non-directory", 160016)

Bug #294283 reported by CodyC
2
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
Fix Released
Undecided
Jelmer Vernooij

Bug Description

When attempting to branch from a private repository, I get the following error:

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.scheme), None)
  File "/home/codyc/.bazaar/plugins/svn/logwalker.py", line 68, in get
    self._ensure_init()
  File "/home/codyc/.bazaar/plugins/svn/logwalker.py", line 38, in _ensure_init
    self.dict = self.create_fn(*self.args)
  File "/home/codyc/.bazaar/plugins/svn/branchprops.py", line 66, in _real_get_changed_properties
    current = self.get_properties(path, revnum)
  File "/home/codyc/.bazaar/plugins/svn/branchprops.py", line 42, in get_properties
    revnum)
  File "/home/codyc/.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)

4.318 return code 4

After a bit more digging with -Dtransport, I found that the culprit is a *file* that has been placed in */tags/.

It would be nice if there were a more useful error message here with a workaround to ignore tags/branches (if one exists)?

Jelmer Vernooij (jelmer)
Changed in bzr-svn:
assignee: nobody → jelmer
milestone: none → 0.4.15
status: New → Fix Released
status: Fix Released → Fix Committed
Jelmer Vernooij (jelmer)
Changed in bzr-svn:
status: Fix Committed → Fix Released
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.