Crash cloning svn://svn.debian.org/python-apps/packages/mercurial (with patch)

Create issue
Issue #77 resolved
Max Bowsher created an issue

I was trying to hg clone svn://svn.debian.org/python-apps/packages/mercurial, and found that it crashed with various odd errors.

It seems to be a bug triggered by a svn commit containing a deletion of the 'branches' directory.

I think the code is using the wrong variable when processing deletions of parent directories of branches - this fixes it for me:

{{{ --- a/hg_delta_editor.py Thu Apr 23 00:12:23 2009 +0100 +++ b/hg_delta_editor.py Thu Apr 23 00:14:42 2009 +0100 @@ -536,7 +536,7 @@ # check for case 5 for known in self.branches: if self._svnpath(known).startswith(p): - self.branches_to_delete.add(br) # case 5 + self.branches_to_delete.add(known) # case 5 added_branches.update(self.__determine_parent_branch(p, paths[p].copyfrom_path, paths[p].copyfrom_rev, revision.revnum)) for t in tags_to_delete: }}}

Comments (1)

  1. Log in to comment