branch | stable |
changeset 14712 | 8a62bae94425 |
parent 14708 | 8083f4d00bd1 |
child 14727 | d4b9d3b91ce7 |
--- a/mercurial/dispatch.py Tue Jun 21 16:55:21 2011 +0300 +++ b/mercurial/dispatch.py Tue Jun 21 17:08:21 2011 +0300 @@ -654,7 +654,7 @@ return runcommand(lui, repo, cmd, fullargs, ui, options, d, cmdpats, cmdoptions) finally: - if repo: + if repo != req.repo: repo.close() def _runcommand(ui, options, cmd, cmdfunc):