# HG changeset patch # User Pierre-Yves David # Date 1325932400 -3600 # Node ID c75a73209f1eb614ccdb292fa253e3a04fa93dff # Parent 7280eede21ea32c9e31e8fa31c76efed7bcf6886 Locking while writing obsolete data. diff -r 7280eede21ea -r c75a73209f1e 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