Show More
@@ -31,6 +31,13 b' def _droponode(data):' | |||||
31 | return b'\0'.join(bits) |
|
31 | return b'\0'.join(bits) | |
32 |
|
32 | |||
33 |
|
33 | |||
|
34 | def _filectxorabsent(hexnode, ctx, f): | |||
|
35 | if hexnode == nullhex: | |||
|
36 | return filemerge.absentfilectx(ctx, f) | |||
|
37 | else: | |||
|
38 | return ctx[f] | |||
|
39 | ||||
|
40 | ||||
34 | # Merge state record types. See ``mergestate`` docs for more. |
|
41 | # Merge state record types. See ``mergestate`` docs for more. | |
35 | RECORD_LOCAL = b'L' |
|
42 | RECORD_LOCAL = b'L' | |
36 | RECORD_OTHER = b'O' |
|
43 | RECORD_OTHER = b'O' | |
@@ -600,8 +607,8 b' class mergestate(object):' | |||||
600 | actx = self._repo[anccommitnode] |
|
607 | actx = self._repo[anccommitnode] | |
601 | else: |
|
608 | else: | |
602 | actx = None |
|
609 | actx = None | |
603 |
fcd = |
|
610 | fcd = _filectxorabsent(localkey, wctx, dfile) | |
604 |
fco = |
|
611 | fco = _filectxorabsent(onode, octx, ofile) | |
605 | # TODO: move this to filectxorabsent |
|
612 | # TODO: move this to filectxorabsent | |
606 | fca = self._repo.filectx(afile, fileid=anode, changectx=actx) |
|
613 | fca = self._repo.filectx(afile, fileid=anode, changectx=actx) | |
607 | # "premerge" x flags |
|
614 | # "premerge" x flags | |
@@ -679,12 +686,6 b' class mergestate(object):' | |||||
679 |
|
686 | |||
680 | return complete, r |
|
687 | return complete, r | |
681 |
|
688 | |||
682 | def _filectxorabsent(self, hexnode, ctx, f): |
|
|||
683 | if hexnode == nullhex: |
|
|||
684 | return filemerge.absentfilectx(ctx, f) |
|
|||
685 | else: |
|
|||
686 | return ctx[f] |
|
|||
687 |
|
||||
688 | def preresolve(self, dfile, wctx): |
|
689 | def preresolve(self, dfile, wctx): | |
689 | """run premerge process for dfile |
|
690 | """run premerge process for dfile | |
690 |
|
691 |
General Comments 0
You need to be logged in to leave comments.
Login now