Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 22908:71570f310417
commit: remove dead initialization of 'lock'
The 'lock' variable is initialized to None, but before it's ever read,
it's assigned again.
author | Martin von Zweigbergk <martinvonz@gmail.com> |
---|---|
date | Mon, 13 Oct 2014 14:34:53 -0700 |
parents | a337f4b9b99d |
children | 4545c5b53013 |
comparison
equal
deleted
inserted
replaced
22907:a337f4b9b99d | 22908:71570f310417 |
---|---|
1375 def commitctx(self, ctx, error=False): | 1375 def commitctx(self, ctx, error=False): |
1376 """Add a new revision to current repository. | 1376 """Add a new revision to current repository. |
1377 Revision information is passed via the context argument. | 1377 Revision information is passed via the context argument. |
1378 """ | 1378 """ |
1379 | 1379 |
1380 tr = lock = None | 1380 tr = None |
1381 p1, p2 = ctx.p1(), ctx.p2() | 1381 p1, p2 = ctx.p1(), ctx.p2() |
1382 user = ctx.user() | 1382 user = ctx.user() |
1383 | 1383 |
1384 lock = self.lock() | 1384 lock = self.lock() |
1385 try: | 1385 try: |