diff hgext/obsolete.py @ 380:b36b07ae21bc

[temp] fix obsolete marker cloning broken in core.
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Thu, 26 Jul 2012 11:44:05 +0200
parents 881c3eca314a
children 3a161a89d65d
line wrap: on
line diff
--- 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
 #############################