Mercurial > public > mercurial-scm > evolve
diff hgext3rd/topic/__init__.py @ 3124:6ef274e01f64 stable
flake8: rename some ambiguous identifier
Apparently, pyflakes declared war on 'l'.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 23 Oct 2017 15:25:00 +0200 |
parents | f06c86fd2ffd |
children | ec0bbf26ce7f |
line wrap: on
line diff
--- a/hgext3rd/topic/__init__.py Mon Oct 23 15:11:48 2017 +0200 +++ b/hgext3rd/topic/__init__.py Mon Oct 23 15:25:00 2017 +0200 @@ -517,16 +517,16 @@ raise error.Abort('changing topic requires a topic name or --clear') if repo.revs('%ld and public()', touchedrevs): raise error.Abort("can't change topic of a public change") - wl = l = txn = None + wl = lock = txn = None try: wl = repo.wlock() - l = repo.lock() + lock = repo.lock() txn = repo.transaction('rewrite-topics') rewrote = _changetopics(ui, repo, touchedrevs, topic) txn.close() ui.status('changed topic on %d changes\n' % rewrote) finally: - lockmod.release(txn, l, wl) + lockmod.release(txn, lock, wl) repo.invalidate() return