Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

stable rename: use shutil.move to perform a rename

Changeset 46b20fde9a39

Parent cdeecb498a56

by Steve Borho

Changes to one file · Browse files at 46b20fde9a39 Showing diff from parent cdeecb498a56 Diff from another changeset...

 
69
70
71
72
 
73
74
75
 
69
70
71
 
72
73
74
75
@@ -69,7 +69,7 @@
  targetdir = os.path.dirname(new_name) or '.'   if not os.path.isdir(targetdir):   os.makedirs(targetdir) - util.copyfile(dlg.orig, new_name) + shutil.move(dlg.orig, new_name)   commands.rename(repo.ui, repo, dlg.orig, new_name, **opts)   toquit = True   except (OSError, IOError, util.Abort, hglib.RepoError), inst: