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