Submitter | Mads Kiilerich |
---|---|
Date | Oct. 14, 2016, 1:17 a.m. |
Message ID | <426994acbf9c9b78aa69.1476407848@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/17076/ |
State | Accepted |
Delegated to: | Pierre-Yves David |
Headers | show |
Comments
Patch
diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -3508,10 +3508,11 @@ class dirstateguard(object): def __init__(self, repo, name): self._repo = repo + self._active = False + self._closed = False self._suffix = '.backup.%s.%d' % (name, id(self)) repo.dirstate.savebackup(repo.currenttransaction(), self._suffix) self._active = True - self._closed = False def __del__(self): if self._active: # still active