Mercurial > hgsubversion
diff hgsubversion/util.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 | d6b75cf2c27d |
line wrap: on
line diff
--- a/hgsubversion/util.py +++ b/hgsubversion/util.py @@ -1,23 +1,16 @@ import compathacks -import errno import re import os import urllib import json import gc -from mercurial import cmdutil from mercurial import error from mercurial import hg from mercurial import node from mercurial import repair from mercurial import util as hgutil -try: - from collections import deque -except: - from mercurial.util import deque - try: from mercurial import revset except ImportError: @@ -29,8 +22,6 @@ try: except ImportError: smartset = None -import maps - ignoredfiles = set(['.hgtags', '.hgsvnexternals', '.hgsub', '.hgsubstate']) b_re = re.compile(r'^\+\+\+ b\/([^\n]*)', re.MULTILINE) @@ -348,7 +339,7 @@ def revset_fromsvn(repo, subset, x): '''``fromsvn()`` Select changesets that originate from Subversion. ''' - args = revset.getargs(x, 0, 0, "fromsvn takes no arguments") + revset.getargs(x, 0, 0, "fromsvn takes no arguments") meta = repo.svnmeta(skiperrorcheck=True) if not meta.revmapexists: