Lines Matching refs:from_path
52 def changefile(from_prefix, to_prefix, from_path, to_path, *,
58 if from_path == to_path and to_path != '-':
64 with openio(from_path) as from_f:
72 if from_path != '-' and to_path != '-':
73 shutil.copystat(from_path, to_path)
76 os.rename(to_path, from_path)
77 elif from_path != '-':
78 os.remove(from_path)
82 '%s -> %s' % (from_path, to_path) if not to_path_temp else from_path,
103 for from_path in paths:
108 to_path = from_path
111 os.path.dirname(from_path),
113 os.path.basename(from_path))[0])
116 changefile(from_prefix, to_prefix, from_path, to_path,
121 if from_path != to_path:
122 cmd = git_path + ['rm', '-q', from_path]