Show More
@@ -3526,10 +3526,11 b' class dirstateguard(object):' | |||||
3526 |
|
3526 | |||
3527 | def __init__(self, repo, name): |
|
3527 | def __init__(self, repo, name): | |
3528 | self._repo = repo |
|
3528 | self._repo = repo | |
|
3529 | self._active = False | |||
|
3530 | self._closed = False | |||
3529 | self._suffix = '.backup.%s.%d' % (name, id(self)) |
|
3531 | self._suffix = '.backup.%s.%d' % (name, id(self)) | |
3530 | repo.dirstate.savebackup(repo.currenttransaction(), self._suffix) |
|
3532 | repo.dirstate.savebackup(repo.currenttransaction(), self._suffix) | |
3531 | self._active = True |
|
3533 | self._active = True | |
3532 | self._closed = False |
|
|||
3533 |
|
3534 | |||
3534 | def __del__(self): |
|
3535 | def __del__(self): | |
3535 | if self._active: # still active |
|
3536 | if self._active: # still active |
General Comments 0
You need to be logged in to leave comments.
Login now