Mercurial > hgsubversion
changeset 1112:0c2eef372483
init: remove pre-1.6 revset code
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Fri, 06 Sep 2013 19:12:17 -0500 |
parents | 815e5cbc7ea7 |
children | c8aa5616eec5 |
files | hgsubversion/__init__.py |
diffstat | 1 files changed, 3 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/hgsubversion/__init__.py +++ b/hgsubversion/__init__.py @@ -34,13 +34,7 @@ demandimport.ignore.extend([ ]) from mercurial import templatekw - -try: - from mercurial import revset - # force demandimport to load revset - revset.methods -except ImportError: - revset = None +from mercurial import revset try: from mercurial import subrepo @@ -161,8 +155,7 @@ def extsetup(ui): templatekw.keywords.update(util.templatekeywords) - if revset: - revset.symbols.update(util.revsets) + revset.symbols.update(util.revsets) if subrepo: subrepo.types['hgsubversion'] = svnexternals.svnsubrepo @@ -173,7 +166,7 @@ def reposetup(ui, repo): for tunnel in ui.configlist('hgsubversion', 'tunnels'): hg.schemes['svn+' + tunnel] = svnrepo - if revset and ui.configbool('hgsubversion', 'nativerevs'): + if ui.configbool('hgsubversion', 'nativerevs'): extensions.wrapfunction(revset, 'stringset', util.revset_stringset) _old_local = hg.schemes['file']