Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0, 2.0.1, and 2.0.2

stable chunks: Append '.bak' to the file backups created by thgrepo.thgbackup.

This makes thg interoperate better with Eclipse and similar tools, as it stops
them from finding .c or .h files in the trashcan.

Changeset c3b5e1aad456

Parent d89c534e750e

by Angel Ezquerra

Changes to one file · Browse files at c3b5e1aad456 Showing diff from parent d89c534e750e Diff from another changeset...

 
483
484
485
 
486
487
488
 
490
491
492
493
 
494
495
496
 
483
484
485
486
487
488
489
 
491
492
493
 
494
495
496
497
@@ -483,6 +483,7 @@
    def thgbackup(self, path):   'Make a backup of the given file in the repository "trashcan"' + # The backup name will be the same as the orginal file plus '.bak'   trashcan = self.join('Trashcan')   if not os.path.isdir(trashcan):   os.mkdir(trashcan) @@ -490,7 +491,7 @@
  return   name = os.path.basename(path)   root, ext = os.path.splitext(name) - dest = tempfile.mktemp(ext, root+'_', trashcan) + dest = tempfile.mktemp(ext+'.bak', root+'_', trashcan)   shutil.copyfile(path, dest)     return thgrepository