Locking while writing obsolete data.
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Sat, 07 Jan 2012 11:33:20 +0100
changeset 122 c75a73209f1e
parent 121 7280eede21ea
child 123 36b27bd12aef
Locking while writing obsolete data.
hgext/obsolete.py
--- a/hgext/obsolete.py	Sat Jan 07 11:26:48 2012 +0100
+++ b/hgext/obsolete.py	Sat Jan 07 11:33:20 2012 +0100
@@ -473,9 +473,10 @@
         @scmutil.filecache('00changelog.i', True)
         def changelog(self):
             changelog = getattr(super(obsoletingrepo, self), 'changelog')
-            assert not changelog.__dict__.pop('hiddenrevs', ())
+            old = changelog.__dict__.pop('hiddenrevs', ())
+            if old:
+                ui.warn("old wasn't empty ? %r" % old)
             def _sethidden(changelog, value):
-                print 'COIN COIN', value
                 assert not value