mercurial/hg.py
branchstable
changeset 16352 4d875bb546dc
parent 16276 6b16ded5c810
child 16705 c2d9ef43ff6c
--- 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, "