Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

wctxactions: implement add and delete methods

Changeset 546a9d8cd282

Parent 5c9315de2701

by Steve Borho

Changes to one file · Browse files at 546a9d8cd282 Showing diff from parent 5c9315de2701 Diff from another changeset...

 
142
143
144
145
 
 
146
147
148
 
155
156
157
158
 
 
 
 
 
 
 
 
 
159
160
161
 
142
143
144
 
145
146
147
148
149
 
156
157
158
 
159
160
161
162
163
164
165
166
167
168
169
170
@@ -142,7 +142,8 @@
  return True    def add(parent, ui, repo, files): - raise NotImplementedError() + commands.add(ui, repo, *files) + return True    def guessRename(parent, ui, repo, files):   raise NotImplementedError() @@ -155,7 +156,15 @@
  return True    def delete(parent, ui, repo, files): - raise NotImplementedError() + res = qtlib.CustomPrompt( + _('Confirm Delete Unrevisioned'), + _('Delete the following unrevisioned files?'), + parent, (_('&Delete'), _('&Cancel')), 1, 1, files).run() + if res == 1: + return + for wfile in files: + os.unlink(wfile) + return True    def copy(parent, ui, repo, files):   raise NotImplementedError()