Changeset 9153ea58dc53…
Parent 0a3442445ef8…
by
Changes to 2 files · Browse files at 9153ea58dc53 Showing diff from parent 0a3442445ef8 Diff from another changeset...
@@ -68,6 +68,7 @@ for s, val in status.statusTypes.iteritems():
opts[val.name] = s in filetypes
+ opts['checkall'] = True # pre-check all matching files
stwidget = status.StatusWidget(pats, opts, repo.root, self)
layout.addWidget(stwidget, 1)
|
@@ -365,6 +365,12 @@ patchecked = {}
try:
if self.pats:
+ if self.opts.get('checkall'):
+ # quickop sets this flag to pre-check even !?IC files
+ precheckfn = lambda x: True
+ else:
+ # status and commit only pre-check MAR files
+ precheckfn = lambda x: x < 4
m = cmdutil.match(self.repo, self.pats)
status = self.repo.status(match=m, **stopts)
# Record all matched files as initially checked
@@ -373,7 +379,7 @@ continue
val = statusTypes[stat]
if self.opts[val.name]:
- d = dict([(fn, True) for fn in status[i]])
+ d = dict([(fn, precheckfn(i)) for fn in status[i]])
patchecked.update(d)
wctx = context.workingctx(self.repo, changes=status)
self.patchecked = patchecked
|
Loading...