Show More
@@ -1893,6 +1893,12 b' class localrepository(object):' | |||
|
1893 | 1893 | **pycompat.strkwargs(tr.hookargs)) |
|
1894 | 1894 | def releasefn(tr, success): |
|
1895 | 1895 | repo = reporef() |
|
1896 | if repo is None: | |
|
1897 | # If the repo has been GC'd (and this release function is being | |
|
1898 | # called from transaction.__del__), there's not much we can do, | |
|
1899 | # so just leave the unfinished transaction there and let the | |
|
1900 | # user run `hg recover`. | |
|
1901 | return | |
|
1896 | 1902 | if success: |
|
1897 | 1903 | # this should be explicitly invoked here, because |
|
1898 | 1904 | # in-memory changes aren't written out at closing |
General Comments 0
You need to be logged in to leave comments.
Login now