Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph

status, purge, shlib: set lfstatus as well as bfstatus to support largefiles

Changeset 4dfdb0026af9

Parent c08f68ca89ab

by David Golub

Changes to 3 files · Browse files at 4dfdb0026af9 Showing diff from parent c08f68ca89ab Diff from another changeset...

 
98
99
100
 
101
102
 
103
104
105
 
215
216
217
 
218
219
220
 
221
222
223
 
98
99
100
101
102
103
104
105
106
107
 
217
218
219
220
221
222
223
224
225
226
227
@@ -98,8 +98,10 @@
  def run(self):   try:   repo.bfstatus = True + repo.lfstatus = True   stat = repo.status(ignored=True, unknown=True)   repo.bfstatus = False + repo.lfstatus = False   trashcan = repo.join('Trashcan')   if os.path.isdir(trashcan):   trash = os.listdir(trashcan) @@ -215,9 +217,11 @@
  match = hglib.matchall(repo)   match.dir = directories.append   repo.bfstatus = True + repo.lfstatus = True   status = repo.status(match=match, ignored=opts['ignored'],   unknown=opts['unknown'], clean=False)   repo.bfstatus = False + repo.lfstatus = False   files = status[4] + status[5]     def remove(remove_func, name):
 
435
436
437
 
438
439
 
440
441
442
 
449
450
451
 
452
453
 
454
455
456
457
 
458
459
 
460
461
462
 
435
436
437
438
439
440
441
442
443
444
 
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
@@ -435,8 +435,10 @@
  precheckfn = lambda x: x < 4   m = hglib.match(self.repo[None], self.pats)   self.repo.bfstatus = True + self.repo.lfstatus = True   status = self.repo.status(match=m, **stopts)   self.repo.bfstatus = False + self.repo.lfstatus = False   # Record all matched files as initially checked   for i, stat in enumerate(StatusType.preferredOrder):   if stat == 'S': @@ -449,14 +451,18 @@
  self.patchecked = patchecked   elif self.pctx:   self.repo.bfstatus = True + self.repo.lfstatus = True   status = self.repo.status(node1=self.pctx.p1().node(), **stopts)   self.repo.bfstatus = False + self.repo.lfstatus = False   wctx = context.workingctx(self.repo, changes=status)   else:   wctx = self.repo[None]   self.repo.bfstatus = True + self.repo.lfstatus = True   wctx.status(**stopts)   self.repo.bfstatus = False + self.repo.lfstatus = False   self.wctx = wctx     wctx.dirtySubrepos = []
 
91
92
93
 
94
95
 
96
97
98
 
91
92
93
94
95
96
97
98
99
100
@@ -91,8 +91,10 @@
    repo = hg.repository(ui, root) # a fresh repo object is needed   repo.bfstatus = True + repo.lfstatus = True   repostate = repo.status() # will update .hg/dirstate as a side effect   repo.bfstatus = False + self.lfstatus = False   modified, added, removed, deleted = repostate[:4]     dirstatus = {}