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: operate in canonical filename space

Report paths relative to the repository root

Changeset ec85da5926c0

Parent 8c6b50b0b175

by Steve Borho

Changes to one file · Browse files at ec85da5926c0 Showing diff from parent 8c6b50b0b175 Diff from another changeset...

 
15
16
17
18
 
19
20
21
 
 
22
23
24
 
 
 
 
25
26
 
27
28
29
 
15
16
17
 
18
19
20
21
22
23
24
 
 
25
26
27
28
29
30
31
32
33
34
@@ -15,15 +15,20 @@
 from tortoisehg.util.i18n import _  from tortoisehg.util import hglib, paths   -from tortoisehg.hgtk import dialog +from tortoisehg.hgtk import dialog, gdialog    def run(ui, *pats, **opts):   fname, target = '', '' + cwd = os.getcwd() + root = paths.find_root(cwd)   try: - fname = pats[0] - target = pats[1] + fname = util.canonpath(root, cwd, pats[0]) + target = util.canonpath(root, cwd, pats[1]) + except util.Abort, e: + return gdialog.Prompt("invalid path", str(e), None)   except IndexError:   pass + os.chdir(root)   fname = util.normpath(fname)   if target:   target = hglib.toutf(util.normpath(target))