# HG changeset patch # User Martin von Zweigbergk # Date 2014-10-13 21:34:53 # Node ID 71570f3104173a20573e7b049a193a21d6eaeb15 # Parent a337f4b9b99d1f434a2674d6f4eba866c118696e commit: remove dead initialization of 'lock' The 'lock' variable is initialized to None, but before it's ever read, it's assigned again. diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -1377,7 +1377,7 @@ class localrepository(object): Revision information is passed via the context argument. """ - tr = lock = None + tr = None p1, p2 = ctx.p1(), ctx.p2() user = ctx.user()