equal
deleted
inserted
replaced
1132 or self.ui.configbool('devel', 'check-locks')): |
1132 or self.ui.configbool('devel', 'check-locks')): |
1133 if self._currentlock(self._lockref) is None: |
1133 if self._currentlock(self._lockref) is None: |
1134 raise error.ProgrammingError('transaction requires locking') |
1134 raise error.ProgrammingError('transaction requires locking') |
1135 tr = self.currenttransaction() |
1135 tr = self.currenttransaction() |
1136 if tr is not None: |
1136 if tr is not None: |
1137 scmutil.registersummarycallback(self, tr, desc) |
|
1138 return tr.nest() |
1137 return tr.nest() |
1139 |
1138 |
1140 # abort here if the journal already exists |
1139 # abort here if the journal already exists |
1141 if self.svfs.exists("journal"): |
1140 if self.svfs.exists("journal"): |
1142 raise error.RepoError( |
1141 raise error.RepoError( |