mercurial/transaction.py
changeset 31648 8defc7d9adae
parent 30002 599912a62ff6
child 32261 976681123416
equal deleted inserted replaced
31647:4dbef666c6c9 31648:8defc7d9adae
   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)