[temp] fix obsolete marker cloning broken in core.
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Thu, 26 Jul 2012 11:44:05 +0200
changeset 380 b36b07ae21bc
parent 379 881c3eca314a
child 381 3a161a89d65d
[temp] fix obsolete marker cloning broken in core.
hgext/obsolete.py
--- a/hgext/obsolete.py	Wed Jul 25 18:18:38 2012 +0200
+++ b/hgext/obsolete.py	Thu Jul 26 11:44:05 2012 +0200
@@ -103,6 +103,7 @@
 from mercurial import commands
 from mercurial import changelog
 from mercurial import phases
+from mercurial import store
 from mercurial.node import hex, bin, short, nullid
 from mercurial.lock import release
 from mercurial import localrepo
@@ -116,6 +117,18 @@
     def storecache(*args):
         return scmutil.filecache(*args, instore=True)
 
+### temporary core fix
+#############################
+getattr(store, '_load', lambda:None)()
+if 'obsstore' not in vars(store)['_data']:
+    store._data = vars(store)['_data'] + ' obsstore'
+
+def wrapcopylist(orig, *args, **kwargs):
+    l = orig(*args, **kwargs)
+    if 'store/obsstore' not in l:
+        l.append('store/obsstore')
+    return l
+
 
 ### Patch changectx
 #############################