equal
deleted
inserted
replaced
224 * `file`: the file path, relative to .hg/store |
224 * `file`: the file path, relative to .hg/store |
225 * `hardlink`: use a hardlink to quickly create the backup |
225 * `hardlink`: use a hardlink to quickly create the backup |
226 """ |
226 """ |
227 if self._queue: |
227 if self._queue: |
228 msg = 'cannot use transaction.addbackup inside "group"' |
228 msg = 'cannot use transaction.addbackup inside "group"' |
229 raise RuntimeError(msg) |
229 raise error.ProgrammingError(msg) |
230 |
230 |
231 if file in self.map or file in self._backupmap: |
231 if file in self.map or file in self._backupmap: |
232 return |
232 return |
233 vfs = self._vfsmap[location] |
233 vfs = self._vfsmap[location] |
234 dirname, filename = vfs.split(file) |
234 dirname, filename = vfs.split(file) |