Mercurial > hg-stable
changeset 16352:4d875bb546dc stable
clone: always close source repository (issue2491)
This is especially needed for cloning from bundles as a temporary
bundlerepository is created which needs to be deleted after clone has
finished.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Tue, 03 Apr 2012 22:01:28 +0200 |
parents | 4f795f5fbb0b |
children | 1d8eab6dfe65 9f98fe05ecf1 |
files | mercurial/hg.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hg.py Tue Apr 03 19:06:35 2012 +0200 +++ b/mercurial/hg.py Tue Apr 03 22:01:28 2012 +0200 @@ -404,6 +404,8 @@ release(srclock, destlock) if dircleanup is not None: dircleanup.cleanup() + if srcrepo is not None: + srcrepo.close() def _showstats(repo, stats): repo.ui.status(_("%d files updated, %d files merged, "