Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.7, 0.7.1, and 0.7.2

commit: do not lose permission changes at commit

Changeset 23a5b97de9b4

Parent 21a8a4b30c9c

by Steve Borho

Changes to 2 files · Browse files at 23a5b97de9b4 Showing diff from parent 21a8a4b30c9c Diff from another changeset...

Change 1 of 2 Show Entire File hggtk/​commit.py Stacked
 
11
12
13
 
14
15
16
 
314
315
316
 
 
 
317
318
319
 
11
12
13
14
15
16
17
 
315
316
317
318
319
320
321
322
323
@@ -11,6 +11,7 @@
 import errno  import gtk  import pango +import shutil  import tempfile  import cStringIO   @@ -314,6 +315,9 @@
  else:   # 3a. apply filtered patch to clean repo (clean)   hg.revert(repo, repo.dirstate.parents()[0], backups.has_key) + # Reapply permissions back to clean files + for realname, tmpname in backups.iteritems(): + shutil.copymode(tmpname, repo.wjoin(realname))     # 3b. (apply)   if dopatch:
Change 1 of 1 Show Entire File hggtk/​hgshelve.py Stacked
 
455
456
457
 
 
 
458
459
460
 
455
456
457
458
459
460
461
462
463
@@ -455,6 +455,9 @@
  # 3a. apply filtered patch to clean repo (clean)   if backups:   hg.revert(repo, basenode, backups.has_key) + # Reapply permissions back to clean files + for realname, tmpname in backups.iteritems(): + shutil.copymode(tmpname, repo.wjoin(realname))     # 3b. apply filtered patch to clean repo (apply)   if dopatch: