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

visdiff: allow revision snapshots to grow files over time

Changeset 412262831596

Parent 80f6e0a3631c

by Steve Borho

Changes to one file · Browse files at 412262831596 Showing diff from parent 80f6e0a3631c Diff from another changeset...

 
40
41
42
43
44
45
 
 
46
47
48
49
50
51
 
 
 
52
53
54
 
40
41
42
 
 
 
43
44
45
46
47
48
49
50
51
52
53
54
55
56
@@ -40,15 +40,17 @@
  dirname = '%s.%s' % (dirname, str(ctx))   base = os.path.join(qtlib.gettempdir(), dirname)   fns_and_mtime = [] - if os.path.exists(base): - return base, fns_and_mtime - os.mkdir(base) + if not os.path.exists(base): + os.mkdir(base)   for fn in files:   wfn = util.pconvert(fn)   if not wfn in ctx:   # File doesn't exist; could be a bogus modify   continue   dest = os.path.join(base, wfn) + if os.path.exists(dest): + # File has already been snapshot + continue   destdir = os.path.dirname(dest)   if not os.path.isdir(destdir):   os.makedirs(destdir)