changeset 882:07234759a3f7 1.4

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.
author Patrick Mezard <patrick@mezard.eu>
date Thu, 26 Apr 2012 16:54:03 +0200
parents ce5837c64b12
children 78ffbe411695
files hgsubversion/svnexternals.py
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/svnexternals.py
+++ b/hgsubversion/svnexternals.py
@@ -443,3 +443,9 @@ if subrepo:
             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()