Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0.3, 2.0.4, and 2.0.5

stable status: do not pre-check !?IC without 'checkall' option (fixes #381)

Changeset 9153ea58dc53

Parent 0a3442445ef8

by Steve Borho

Changes to 2 files · Browse files at 9153ea58dc53 Showing diff from parent 0a3442445ef8 Diff from another changeset...

 
68
69
70
 
71
72
73
 
68
69
70
71
72
73
74
@@ -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
366
367
 
 
 
 
 
 
368
369
370
 
373
374
375
376
 
377
378
379
 
365
366
367
368
369
370
371
372
373
374
375
376
 
379
380
381
 
382
383
384
385
@@ -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