author | Matt Mackall <mpm@selenic.com> |
Wed, 16 Dec 2009 16:46:12 -0600 | |
changeset 10087 | b1982715c435 |
parent 10085 | 3f3f9c5bbe2b (current diff) |
parent 10086 | e388f5ee7bf5 (diff) |
child 10088 | ec8304e66ea5 |
child 10093 | a43ae5777221 |
--- a/hgext/convert/hg.py Wed Dec 16 22:58:57 2009 +0100 +++ b/hgext/convert/hg.py Wed Dec 16 16:46:12 2009 -0600 @@ -61,8 +61,10 @@ def after(self): self.ui.debug('run hg sink post-conversion action\n') - self.lock.release() - self.wlock.release() + if self.lock: + self.lock.release() + if self.wlock: + self.wlock.release() def revmapfile(self): return os.path.join(self.path, ".hg", "shamap")