commit: remove dead initialization of 'lock'
authorMartin von Zweigbergk <martinvonz@gmail.com>
Mon, 13 Oct 2014 14:34:53 -0700
changeset 22908 71570f310417
parent 22907 a337f4b9b99d
child 22909 4545c5b53013
commit: remove dead initialization of 'lock' The 'lock' variable is initialized to None, but before it's ever read, it's assigned again.
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Mon Oct 13 16:43:37 2014 -0700
+++ b/mercurial/localrepo.py	Mon Oct 13 14:34:53 2014 -0700
@@ -1377,7 +1377,7 @@
         Revision information is passed via the context argument.
         """
 
-        tr = lock = None
+        tr = None
         p1, p2 = ctx.p1(), ctx.p2()
         user = ctx.user()