Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0.3, 2.0.4, and 2.0.5

stable visdiff: also append diffCount to snapshot of working copy (fixes #401)

Because the working copy can be modified at any time, the snapshot shouldn't
be reused.

Changeset 55cc60eb62eb

Parent b98ec20d5b41

by Yuya Nishihara

Changes to one file · Browse files at 55cc60eb62eb Showing diff from parent b98ec20d5b41 Diff from another changeset...

 
89
90
91
 
92
93
 
94
95
96
 
89
90
91
92
93
 
94
95
96
97
@@ -89,8 +89,9 @@
 def snapshot(repo, files, ctx):   '''snapshot files as of some revision'''   dirname = os.path.basename(repo.root) or 'root' + dirname += '.%d' % _diffCount   if ctx.rev() is not None: - dirname = '%s.%d.%d' % (dirname, _diffCount, ctx.rev()) + dirname += '.%d' % ctx.rev()   base = os.path.join(qtlib.gettempdir(), dirname)   fns_and_mtime = []   if not os.path.exists(base):