Mercurial > evolve
changeset 6737:08a9113a15ee stable
topic: rename the lock variable to wlock in topicrepo.wlock()
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Wed, 13 Mar 2024 15:54:01 -0300 |
parents | ce3723b78f91 |
children | cf37748874f4 |
files | hgext3rd/topic/__init__.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/topic/__init__.py Mon Mar 11 16:35:29 2024 -0300 +++ b/hgext3rd/topic/__init__.py Wed Mar 13 15:54:01 2024 -0300 @@ -716,18 +716,18 @@ return namespaces def wlock(self, wait=True): - lock = super(topicrepo, self).wlock(wait=wait) + wlock = super(topicrepo, self).wlock(wait=wait) # we should definitely drop this at some point, but it depends on # our own release schedule, not core's, so here's hg 1.0 # hg <= 1.0 (cfa08c88a5c4) - if lock is not None and lock.held: + if wlock is not None and wlock.held: try: if self.vfs.read(b'topic-namespace') == b'none': repo.vfs.unlinkpath(b'topic-namespace') except IOError as err: if err.errno != errno.ENOENT: raise - return lock + return wlock @property def currenttns(self):