Commits

Patrick Mézard committed 0723475

svnexternals: fix handling of subrepo pinned to HEAD in hg 2.2

hg 2.2 is trying harder to see through our lies but we will prevail. Override
subrepo.basestate() so we can pretend the svn revision number is HEAD, honest.

Comments (0)

Files changed (1)

hgsubversion/svnexternals.py

             if self._state[1] == 'HEAD':
                 rev = 'HEAD'
             return rev
+
+        def basestate(self):
+            # basestate() was introduced by bcb973abcc0b in 2.2
+            if self._state[1] == 'HEAD':
+                return 'HEAD'
+            return super(svnsubrepo, self).basestate()