changeset 27192 | a01d3d32b53a |
parent 27176 | 54ace3372f84 |
child 27193 | c7217f1458bf |
--- a/mercurial/commands.py Tue Dec 01 16:15:59 2015 -0800 +++ b/mercurial/commands.py Wed Dec 02 03:12:07 2015 +0900 @@ -1576,6 +1576,15 @@ Returns 0 on success, 1 if nothing changed. """ + wlock = lock = None + try: + wlock = repo.wlock() + lock = repo.lock() + return _docommit(ui, repo, *pats, **opts) + finally: + release(lock, wlock) + +def _docommit(ui, repo, *pats, **opts): if opts.get('interactive'): opts.pop('interactive') cmdutil.dorecord(ui, repo, commit, None, False,