changeset 122:c75a73209f1e

Locking while writing obsolete data.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Sat, 07 Jan 2012 11:33:20 +0100
parents 7280eede21ea
children 36b27bd12aef
files hgext/obsolete.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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