Changeset 4fec2468ec0c…
Parent 72122b0c4960…
by
Changes to one file · Browse files at 4fec2468ec0c Showing diff from parent 72122b0c4960 Diff from another changeset...
@@ -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])
|
Loading...