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

status: do not "pre-check" MAR files when they're unwanted

Ex:
thg add folder/

If folder/ contains any M files, they would have been considered
checked even though they never would have appeared in the default
file list.

Changeset 4fec2468ec0c

Parent 72122b0c4960

by Steve Borho

Changes to one file · Browse files at 4fec2468ec0c Showing diff from parent 72122b0c4960 Diff from another changeset...

 
208
209
210
 
 
 
 
 
 
 
211
212
213
 
208
209
210
211
212
213
214
215
216
217
218
219
220
@@ -208,6 +208,13 @@
  if self.pats:   m = cmdutil.match(self.repo, self.pats)   status = self.repo.status(match=m, **stopts) + # Remove unwanted files before checking them + if not self.opts['modified']: + status[0] = [] + if not self.opts['added']: + status[1] = [] + if not self.opts['removed']: + status[2] = []   # Record all matched files as initially checked   self.patchecked = dict([(fn, True) for group in status \   for fn in group])