Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

quickop: handle rm command alias better

Changeset 2bbd439e063c

Parent 05e172e34b60

by Steve Borho

Changes to one file · Browse files at 2bbd439e063c Showing diff from parent 05e172e34b60 Diff from another changeset...

 
38
39
40
 
 
 
 
41
42
43
 
112
113
114
115
 
116
117
118
 
126
127
128
129
130
131
132
 
144
145
146
147
 
148
149
150
151
 
152
153
154
 
220
221
222
223
 
224
225
226
 
38
39
40
41
42
43
44
45
46
47
 
116
117
118
 
119
120
121
122
 
130
131
132
 
133
134
135
 
147
148
149
 
150
151
152
153
 
154
155
156
157
 
223
224
225
 
226
227
228
229
@@ -38,6 +38,10 @@
  gobject.idle_add(self.destroy)   return   + # Handle rm alias + if command == 'rm': + command = 'remove' +   os.chdir(repo.root)   self.repo = repo   self.set_title(hglib.get_reponame(repo) + ' ' + command) @@ -112,7 +116,7 @@
  types = { 'add' : 'I?',   'forget' : 'MAR!C',   'revert' : 'MAR!', - 'remove' : 'MAR!CI?', 'rm' : 'MAR!CI?', + 'remove' : 'MAR!CI?',   }   filetypes = types[command]   @@ -126,7 +130,6 @@
  pass     (modified, added, removed, deleted, unknown, ignored, clean) = status - deleting = command in ('remove', 'rm')   if 'M' in filetypes:   for f in modified:   fm.append([True, f, hglib.toutf(f), _('modified')]) @@ -144,11 +147,11 @@
  fm.append([True, f, hglib.toutf(f), _('unknown')])   if 'I' in filetypes:   for f in ignored: - if deleting or f in pats: + if command == 'remove' or f in pats:   fm.append([True, f, hglib.toutf(f), _('ignored')])   if 'C' in filetypes:   for f in clean: - if deleting or f in pats: + if command == 'remove' or f in pats:   fm.append([True, f, hglib.toutf(f), _('clean')])     if not len(fm): @@ -220,7 +223,7 @@
    def operation(self, repo):   fm = self.filetree.get_model() - deleting = self.command in ('remove', 'rm') + deleting = self.command == 'remove'   list, dellist = [], []   for row in fm:   if not row[0]: continue