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

chunks: store backups in Trashcan before modifying

Changeset fb7ad672a175

Parent b2c2e4084c92

by Steve Borho

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

 
111
112
113
 
114
115
116
 
139
140
141
 
142
143
144
 
111
112
113
114
115
116
117
 
140
141
142
143
144
145
146
@@ -111,6 +111,7 @@
  ctx = self.filelistmodel._ctx   if isinstance(ctx, patchctx):   try: + repo.thgbackup(ctx._path)   fp = util.atomictempfile(ctx._path, 'wb')   if ctx._ph.comments:   fp.write('\n'.join(ctx._ph.comments)) @@ -139,6 +140,7 @@
  if self.mtime != os.path.getmtime(path):   self.showMessage.emit(_('file hsa been modified, refresh'))   return + repo.thgbackup(repo.wjoin(self.currentFile))   if revertall:   hg.revert(repo, repo.dirstate.parents()[0],   lambda a: a == self.currentFile)