Show More
@@ -577,7 +577,7 b' def updatelfiles(' | |||||
577 | repo.wvfs.unlinkpath(lfutil.standin(f)) |
|
577 | repo.wvfs.unlinkpath(lfutil.standin(f)) | |
578 | # This needs to happen for dropped files, otherwise they stay in |
|
578 | # This needs to happen for dropped files, otherwise they stay in | |
579 | # the M state. |
|
579 | # the M state. | |
580 | lfdirstate._drop(f) |
|
580 | lfdirstate._map.dropfile(f) | |
581 |
|
581 | |||
582 | statuswriter(_(b'getting changed largefiles\n')) |
|
582 | statuswriter(_(b'getting changed largefiles\n')) | |
583 | cachelfiles(ui, repo, None, lfiles) |
|
583 | cachelfiles(ui, repo, None, lfiles) |
@@ -560,7 +560,9 b' class dirstate(object):' | |||||
560 | possibly_dirty = True |
|
560 | possibly_dirty = True | |
561 | elif not (p1_tracked or wc_tracked): |
|
561 | elif not (p1_tracked or wc_tracked): | |
562 | # the file is no longer relevant to anyone |
|
562 | # the file is no longer relevant to anyone | |
563 | self._drop(filename) |
|
563 | if self._map.dropfile(filename): | |
|
564 | self._dirty = True | |||
|
565 | self._updatedfiles.add(filename) | |||
564 | elif (not p1_tracked) and wc_tracked: |
|
566 | elif (not p1_tracked) and wc_tracked: | |
565 | if entry is not None and entry.added: |
|
567 | if entry is not None and entry.added: | |
566 | return # avoid dropping copy information (maybe?) |
|
568 | return # avoid dropping copy information (maybe?) | |
@@ -742,12 +744,6 b' class dirstate(object):' | |||||
742 | self._addpath(f, possibly_dirty=True) |
|
744 | self._addpath(f, possibly_dirty=True) | |
743 | self._map.copymap.pop(f, None) |
|
745 | self._map.copymap.pop(f, None) | |
744 |
|
746 | |||
745 | def _drop(self, filename): |
|
|||
746 | """internal function to drop a file from the dirstate""" |
|
|||
747 | if self._map.dropfile(filename): |
|
|||
748 | self._dirty = True |
|
|||
749 | self._updatedfiles.add(filename) |
|
|||
750 |
|
||||
751 | def _discoverpath(self, path, normed, ignoremissing, exists, storemap): |
|
747 | def _discoverpath(self, path, normed, ignoremissing, exists, storemap): | |
752 | if exists is None: |
|
748 | if exists is None: | |
753 | exists = os.path.lexists(os.path.join(self._root, path)) |
|
749 | exists = os.path.lexists(os.path.join(self._root, path)) | |
@@ -860,7 +856,8 b' class dirstate(object):' | |||||
860 | for f in to_lookup: |
|
856 | for f in to_lookup: | |
861 | self._normallookup(f) |
|
857 | self._normallookup(f) | |
862 | for f in to_drop: |
|
858 | for f in to_drop: | |
863 | self._drop(f) |
|
859 | if self._map.dropfile(f): | |
|
860 | self._updatedfiles.add(f) | |||
864 |
|
861 | |||
865 | self._dirty = True |
|
862 | self._dirty = True | |
866 |
|
863 |
@@ -19,7 +19,8 b'' | |||||
19 | > if opts.get('normal_lookup'): |
|
19 | > if opts.get('normal_lookup'): | |
20 | > repo.dirstate._normallookup(file) |
|
20 | > repo.dirstate._normallookup(file) | |
21 | > else: |
|
21 | > else: | |
22 | > repo.dirstate._drop(file) |
|
22 | > repo.dirstate._map.dropfile(file) | |
|
23 | > repo.dirstate._dirty = True | |||
23 | > |
|
24 | > | |
24 | > repo.dirstate.write(repo.currenttransaction()) |
|
25 | > repo.dirstate.write(repo.currenttransaction()) | |
25 | > finally: |
|
26 | > finally: |
General Comments 0
You need to be logged in to leave comments.
Login now