Show More
@@ -399,7 +399,8 b' def synclfdirstate(repo, lfdirstate, lfi' | |||
|
399 | 399 | else: |
|
400 | 400 | state, mtime = '?', -1 |
|
401 | 401 | if state == 'n': |
|
402 |
if normallookup or mtime < 0 |
|
|
402 | if (normallookup or mtime < 0 or | |
|
403 | not os.path.exists(repo.wjoin(lfile))): | |
|
403 | 404 | # state 'n' doesn't ensure 'clean' in this case |
|
404 | 405 | lfdirstate.normallookup(lfile) |
|
405 | 406 | else: |
@@ -140,6 +140,28 b' Test that "hg merge" updates largefiles ' | |||
|
140 | 140 | $ cat .hglf/large1 |
|
141 | 141 | 58e24f733a964da346e2407a2bee99d9001184f5 |
|
142 | 142 | |
|
143 | (merge non-existing largefiles from "other" via conflict prompt - | |
|
144 | make sure the following commit doesn't abort in a confusing way when trying to | |
|
145 | mark the non-existing file as normal in lfdirstate) | |
|
146 | ||
|
147 | $ mv .hg/largefiles/58e24f733a964da346e2407a2bee99d9001184f5 . | |
|
148 | $ hg update -q -C 3 | |
|
149 | $ hg merge --config largefiles.usercache=not --config debug.dirstate.delaywrite=2 --tool :local --config ui.interactive=True <<EOF | |
|
150 | > o | |
|
151 | > EOF | |
|
152 | largefile large1 has a merge conflict | |
|
153 | ancestor was 4669e532d5b2c093a78eca010077e708a071bb64 | |
|
154 | keep (l)ocal e5bb990443d6a92aaf7223813720f7566c9dd05b or | |
|
155 | take (o)ther 58e24f733a964da346e2407a2bee99d9001184f5? o | |
|
156 | getting changed largefiles | |
|
157 | large1: largefile 58e24f733a964da346e2407a2bee99d9001184f5 not available from file:/*/$TESTTMP/repo (glob) | |
|
158 | 0 largefiles updated, 0 removed | |
|
159 | 0 files updated, 2 files merged, 0 files removed, 0 files unresolved | |
|
160 | (branch merge, don't forget to commit) | |
|
161 | $ hg commit -m '1-2-3 testing' | |
|
162 | $ hg rollback -q | |
|
163 | $ mv 58e24f733a964da346e2407a2bee99d9001184f5 .hg/largefiles/ | |
|
164 | ||
|
143 | 165 | Test that "hg revert -r REV" updates largefiles from "REV" correctly |
|
144 | 166 | |
|
145 | 167 | $ hg update -q -C 3 |
General Comments 0
You need to be logged in to leave comments.
Login now