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

hgtk: verify arguments to rename command

Changeset 8ae7eb737959

Parent 8af033e9683d

by Steve Borho

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

Change 1 of 1 Show Entire File contrib/​hgtk Stacked
 
207
208
209
 
 
210
211
212
 
207
208
209
210
211
212
213
214
@@ -207,6 +207,8 @@
 def rename(ui, *pats, **opts):   """rename a single file or directory"""   from hggtk.rename import run + if len(pats) != 1: + raise util.Abort("rename takes a single path argument")   opts['fname'] = pats[0]   run(**opts)