Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

commit: fix windows slash behavior

Changeset 0c567535ab80

Parent 79571b692322

by Steve Borho

Changes to one file · Browse files at 0c567535ab80 Showing diff from parent 79571b692322 Diff from another changeset...

Change 1 of 2 Show Entire File hggtk/​commit.py Stacked
 
430
431
432
433
 
 
434
435
436
 
439
440
441
442
 
443
444
445
446
 
 
447
448
449
 
430
431
432
 
433
434
435
436
437
 
440
441
442
 
443
444
445
 
 
446
447
448
449
450
@@ -430,7 +430,8 @@
  # backup continues   allchunks = []   for f in files: - if f not in self.modified: continue + cf = util.pconvert(f) + if cf not in self.modified: continue   if f not in self.filechunks: continue   chunks = self.filechunks[f]   if len(chunks) < 2: continue @@ -439,11 +440,11 @@
  rejected = [c for c in chunks[1:] if not c.active]   if len(rejected) == 0: continue   allchunks.extend(chunks) - fd, tmpname = tempfile.mkstemp(prefix=f.replace('/', '_')+'.', + fd, tmpname = tempfile.mkstemp(prefix=cf.replace('/', '_')+'.',   dir=backupdir)   os.close(fd) - util.copyfile(repo.wjoin(f), tmpname) - backups[f] = tmpname + util.copyfile(repo.wjoin(cf), tmpname) + backups[cf] = tmpname     fp = cStringIO.StringIO()   for n, c in enumerate(allchunks):