changeset 1113:c8aa5616eec5

init: remove pre-1.7 subrepo code
author Sean Farley <sean.michael.farley@gmail.com>
date Fri, 06 Sep 2013 19:12:42 -0500
parents 0c2eef372483
children 080afbcbe28b
files hgsubversion/__init__.py
diffstat 1 files changed, 2 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/__init__.py
+++ b/hgsubversion/__init__.py
@@ -35,14 +35,7 @@ demandimport.ignore.extend([
 
 from mercurial import templatekw
 from mercurial import revset
-
-try:
-    from mercurial import subrepo
-    # require svnsubrepo and hg >= 1.7.1
-    subrepo.svnsubrepo
-    hgutil.checknlink
-except (ImportError, AttributeError), e:
-    subrepo = None
+from mercurial import subrepo
 
 import svncommands
 import util
@@ -157,8 +150,7 @@ def extsetup(ui):
 
     revset.symbols.update(util.revsets)
 
-    if subrepo:
-        subrepo.types['hgsubversion'] = svnexternals.svnsubrepo
+    subrepo.types['hgsubversion'] = svnexternals.svnsubrepo
 
 def reposetup(ui, repo):
     if repo.local():