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: sanity check target filename before using it

util.canonpath() will abort if the target filename is not within the repository
root, or is within the store

Changeset a42ac062d37d

Parent 5c0009dcbded

by Steve Borho

Changes to one file · Browse files at a42ac062d37d Showing diff from parent 5c0009dcbded Diff from another changeset...

 
64
65
66
 
67
68
69
 
64
65
66
67
68
69
70
@@ -64,6 +64,7 @@
  repo.ui.pushbuffer()   repo.ui.quiet = True   try: + new_name = util.canonpath(root, root, new_name)   os.rename(dlg.orig, new_name)   commands.rename(repo.ui, repo, dlg.orig, new_name, **opts)   toquit = True