Mercurial > hgsubversion
diff hgsubversion/stupid.py @ 1558:ae572c9be4e6
cleanup: remove lots of dead imports and code found by pyflakes
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Sat, 24 Mar 2018 17:04:19 -0400 |
parents | cff81f35b31e |
children | 8a66277136ab |
line wrap: on
line diff
--- a/hgsubversion/stupid.py +++ b/hgsubversion/stupid.py @@ -7,7 +7,6 @@ from mercurial import error as hgerror from mercurial import node from mercurial import patch from mercurial import revlog -from mercurial import util as hgutil import compathacks import svnwrap @@ -645,14 +644,13 @@ def convert_rev(ui, meta, svn, r, tbdelt branches = branches_in_paths(meta, tbdelta, r.paths, r.revnum, svn.checkpath, svn.list_files, firstrun) - brpaths = branches.values() bad_branch_paths = {} for br, bp in branches.iteritems(): bad_branch_paths[br] = [] # This next block might be needed, but for now I'm omitting it until it # can be proven necessary. - # for bad in brpaths: + # for bad in branches.values(): # if bad.startswith(bp) and len(bad) > len(bp): # bad_branch_paths[br].append(bad[len(bp)+1:])