Show More
@@ -136,8 +136,8 def openlfdirstate(ui, repo, create=True | |||
|
136 | 136 | |
|
137 | 137 | def lfdirstatestatus(lfdirstate, repo, rev): |
|
138 | 138 | match = match_.always(repo.root, repo.getcwd()) |
|
139 | s = lfdirstate.status(match, [], False, False, False) | |
|
140 |
|
|
|
139 | unsure, s = lfdirstate.status(match, [], False, False, False) | |
|
140 | modified, added, removed, missing, unknown, ignored, clean = s | |
|
141 | 141 | for lfile in unsure: |
|
142 | 142 | try: |
|
143 | 143 | fctx = repo[rev][standin(lfile)] |
@@ -351,9 +351,9 def overrideupdate(orig, ui, repo, *pats | |||
|
351 | 351 | wlock = repo.wlock() |
|
352 | 352 | try: |
|
353 | 353 | lfdirstate = lfutil.openlfdirstate(ui, repo) |
|
354 | s = lfdirstate.status(match_.always(repo.root, repo.getcwd()), | |
|
355 | [], False, False, False) | |
|
356 | (unsure, modified, added, removed, missing, unknown, ignored, clean) = s | |
|
354 | unsure, s = lfdirstate.status(match_.always(repo.root, repo.getcwd()), | |
|
355 | [], False, False, False) | |
|
356 | modified = s[0] | |
|
357 | 357 | |
|
358 | 358 | if opts['check']: |
|
359 | 359 | mod = len(modified) > 0 |
@@ -1110,9 +1110,9 def scmutiladdremove(orig, repo, pats=[] | |||
|
1110 | 1110 | return orig(repo, pats, opts, dry_run, similarity) |
|
1111 | 1111 | # Get the list of missing largefiles so we can remove them |
|
1112 | 1112 | lfdirstate = lfutil.openlfdirstate(repo.ui, repo) |
|
1113 |
s = lfdirstate.status(match_.always(repo.root, repo.getcwd()), [], |
|
|
1114 | False, False) | |
|
1115 | (unsure, modified, added, removed, missing, unknown, ignored, clean) = s | |
|
1113 | unsure, s = lfdirstate.status(match_.always(repo.root, repo.getcwd()), [], | |
|
1114 | False, False, False) | |
|
1115 | missing = s[3] | |
|
1116 | 1116 | |
|
1117 | 1117 | # Call into the normal remove code, but the removing of the standin, we want |
|
1118 | 1118 | # to have handled by original addremove. Monkey patching here makes sure |
@@ -1288,9 +1288,10 def mergeupdate(orig, repo, node, branch | |||
|
1288 | 1288 | # update standins for linear-merge or force-branch-merge, |
|
1289 | 1289 | # because largefiles in the working directory may be modified |
|
1290 | 1290 | lfdirstate = lfutil.openlfdirstate(repo.ui, repo) |
|
1291 |
s = lfdirstate.status(match_.always(repo.root, |
|
|
1292 | [], False, False, False) | |
|
1293 | unsure, modified, added = s[:3] | |
|
1291 | unsure, s = lfdirstate.status(match_.always(repo.root, | |
|
1292 | repo.getcwd()), | |
|
1293 | [], False, False, False) | |
|
1294 | modified, added = s[:2] | |
|
1294 | 1295 | for lfile in unsure + modified + added: |
|
1295 | 1296 | lfutil.updatestandin(repo, lfutil.standin(lfile)) |
|
1296 | 1297 |
@@ -159,10 +159,10 def reposetup(ui, repo): | |||
|
159 | 159 | if sfindirstate(f)] |
|
160 | 160 | # Don't waste time getting the ignored and unknown |
|
161 | 161 | # files from lfdirstate |
|
162 | s = lfdirstate.status(match, [], False, | |
|
163 |
|
|
|
164 |
( |
|
|
165 |
|
|
|
162 | unsure, s = lfdirstate.status(match, [], False, listclean, | |
|
163 | False) | |
|
164 | (modified, added, removed, missing, _unknown, _ignored, | |
|
165 | clean) = s | |
|
166 | 166 | if parentworking: |
|
167 | 167 | for lfile in unsure: |
|
168 | 168 | standin = lfutil.standin(lfile) |
@@ -296,9 +296,9 def reposetup(ui, repo): | |||
|
296 | 296 | # large. |
|
297 | 297 | lfdirstate = lfutil.openlfdirstate(ui, self) |
|
298 | 298 | dirtymatch = match_.always(self.root, self.getcwd()) |
|
299 |
s = lfdirstate.status(dirtymatch, [], False, False, |
|
|
300 | (unsure, modified, added, removed, _missing, _unknown, | |
|
301 | _ignored, _clean) = s | |
|
299 | unsure, s = lfdirstate.status(dirtymatch, [], False, False, | |
|
300 | False) | |
|
301 | modified, added, removed = s[:3] | |
|
302 | 302 | modifiedfiles = unsure + modified + added + removed |
|
303 | 303 | lfiles = lfutil.listlfiles(self) |
|
304 | 304 | # this only loops through largefiles that exist (not |
@@ -1418,9 +1418,9 class workingctx(committablectx): | |||
|
1418 | 1418 | subrepos = [] |
|
1419 | 1419 | if '.hgsub' in self: |
|
1420 | 1420 | subrepos = sorted(self.substate) |
|
1421 | s = self._repo.dirstate.status(match, subrepos, listignored, | |
|
1422 | listclean, listunknown) | |
|
1423 |
|
|
|
1421 | cmp, s = self._repo.dirstate.status(match, subrepos, listignored, | |
|
1422 | listclean, listunknown) | |
|
1423 | modified, added, removed, deleted, unknown, ignored, clean = s | |
|
1424 | 1424 | |
|
1425 | 1425 | # check for any possibly clean files |
|
1426 | 1426 | if cmp: |
@@ -809,8 +809,8 class dirstate(object): | |||
|
809 | 809 | |
|
810 | 810 | def status(self, match, subrepos, ignored, clean, unknown): |
|
811 | 811 | '''Determine the status of the working copy relative to the |
|
812 | dirstate and return a tuple of lists (unsure, modified, added, | |
|
813 | removed, deleted, unknown, ignored, clean), where: | |
|
812 | dirstate and return a nested tuple of lists (unsure, (modified, added, | |
|
813 | removed, deleted, unknown, ignored, clean)), where: | |
|
814 | 814 | |
|
815 | 815 | unsure: |
|
816 | 816 | files that might have been modified since the dirstate was |
@@ -908,8 +908,8 class dirstate(object): | |||
|
908 | 908 | elif state == 'r': |
|
909 | 909 | radd(fn) |
|
910 | 910 | |
|
911 | return (lookup, modified, added, removed, deleted, unknown, ignored, | |
|
912 | clean) | |
|
911 | return (lookup, (modified, added, removed, deleted, unknown, ignored, | |
|
912 | clean)) | |
|
913 | 913 | |
|
914 | 914 | def matches(self, match): |
|
915 | 915 | ''' |
General Comments 0
You need to be logged in to leave comments.
Login now