diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -912,6 +912,7 @@ class localrepository(object): vfsmap = {'plain': self.vfs} # root of .hg/ tr = transaction.transaction(rp, self.svfs, vfsmap, "journal", + "undo", aftertrans(renames), self.store.createmode) # note: writing the fncache only during finalize mean that the file is diff --git a/mercurial/transaction.py b/mercurial/transaction.py --- a/mercurial/transaction.py +++ b/mercurial/transaction.py @@ -82,8 +82,8 @@ def _playback(journal, report, opener, v pass class transaction(object): - def __init__(self, report, opener, vfsmap, journalname, after=None, - createmode=None): + def __init__(self, report, opener, vfsmap, journalname, undoname=None, + after=None, createmode=None): """Begin a new transaction Begins a new transaction that allows rolling back writes in the event of @@ -105,6 +105,7 @@ class transaction(object): self.entries = [] self.map = {} self.journal = journalname + self.undoname = undoname self._queue = [] # a dict of arguments to be passed to hooks self.hookargs = {}