Show More
@@ -443,6 +443,7 def updatelfiles(ui, repo, filelist=None | |||||
443 | lfiles = set(lfutil.listlfiles(repo)) | set(lfdirstate) |
|
443 | lfiles = set(lfutil.listlfiles(repo)) | set(lfdirstate) | |
444 |
|
444 | |||
445 | if filelist is not None: |
|
445 | if filelist is not None: | |
|
446 | filelist = set(filelist) | |||
446 | lfiles = [f for f in lfiles if f in filelist] |
|
447 | lfiles = [f for f in lfiles if f in filelist] | |
447 |
|
448 | |||
448 | update = {} |
|
449 | update = {} | |
@@ -512,6 +513,19 def updatelfiles(ui, repo, filelist=None | |||||
512 |
|
513 | |||
513 | lfutil.synclfdirstate(repo, lfdirstate, lfile, normallookup) |
|
514 | lfutil.synclfdirstate(repo, lfdirstate, lfile, normallookup) | |
514 |
|
515 | |||
|
516 | if filelist is not None: | |||
|
517 | # If "local largefile" is chosen at file merging, it is | |||
|
518 | # not listed in "filelist" (= dirstate syncing is | |||
|
519 | # omitted), because the standin file is not changed before and | |||
|
520 | # after merging. | |||
|
521 | # But the status of such files may have to be changed by | |||
|
522 | # merging. For example, locally modified ("M") largefile | |||
|
523 | # has to become re-added("A"), if it is "normal" file in | |||
|
524 | # the target revision of linear-merging. | |||
|
525 | for lfile in lfdirstate: | |||
|
526 | if lfile not in filelist: | |||
|
527 | lfutil.synclfdirstate(repo, lfdirstate, lfile, True) | |||
|
528 | ||||
515 | lfdirstate.write() |
|
529 | lfdirstate.write() | |
516 | if printmessage and lfiles: |
|
530 | if printmessage and lfiles: | |
517 | ui.status(_('%d largefiles updated, %d removed\n') % (updated, |
|
531 | ui.status(_('%d largefiles updated, %d removed\n') % (updated, |
@@ -247,6 +247,8 Test a linear merge to a revision contai | |||||
247 | $ hg debugdirstate --nodates | grep large2 |
|
247 | $ hg debugdirstate --nodates | grep large2 | |
248 | a 0 -1 .hglf/large2 |
|
248 | a 0 -1 .hglf/large2 | |
249 | r 0 0 large2 |
|
249 | r 0 0 large2 | |
|
250 | $ hg status -A large2 | |||
|
251 | A large2 | |||
250 | $ cat large2 |
|
252 | $ cat large2 | |
251 | modified large2 for linear merge |
|
253 | modified large2 for linear merge | |
252 |
|
254 | |||
@@ -261,6 +263,8 Test a linear merge to a revision contai | |||||
261 | $ hg debugdirstate --nodates | grep large3 |
|
263 | $ hg debugdirstate --nodates | grep large3 | |
262 | a 0 -1 .hglf/large3 |
|
264 | a 0 -1 .hglf/large3 | |
263 | r 0 0 large3 |
|
265 | r 0 0 large3 | |
|
266 | $ hg status -A large3 | |||
|
267 | A large3 | |||
264 | $ cat large3 |
|
268 | $ cat large3 | |
265 | large3 as large file for linear merge |
|
269 | large3 as large file for linear merge | |
266 |
|
270 |
General Comments 0
You need to be logged in to leave comments.
Login now