comparison tests/test-double-merge.t @ 21391:cb15835456cb

merge: change debug logging - test output changes but no real changes Preparing for action list split-up, making sure the final change don't have any test changes. The patch moves debug statements around without really changing anything. Arguably, it temporarily makes the code worse. The only justification is that it makes it easier to review the test changes ... and in the end the big change will not change test output at all. The changes to test output are due to changes in the ordering of debug output. That is mainly because we now do the debug logging for files when we actually process them. Files are also processed in a slightly different but still correct order. It is now primarily ordered by action type, secondarily by filename. The patch introduces some redundancy. Some of it will be removed again, some of it will in the end help code readability and efficiency. It is possible that we later on could introduce a "process this action list and do some logging and progress reporting and apply this function". The "preserving X for resolve" debug statements will only have single space indentation. It will no longer have a leading single space indented "f: msg -> m" message. Having this message double indented would thus no longer make sense. The bid actions will temporarily be sorted using a custom sort key that happens to match the sort order the simplified code will have in the end.
author Mads Kiilerich <madski@unity3d.com>
date Tue, 22 Apr 2014 02:10:25 +0200
parents 18adc15635a1
children bd625cd4e5e7
comparison
equal deleted inserted replaced
21390:26b84128c54d 21391:cb15835456cb
33 src: 'foo' -> dst: 'bar' * 33 src: 'foo' -> dst: 'bar' *
34 checking for directory renames 34 checking for directory renames
35 resolving manifests 35 resolving manifests
36 branchmerge: True, force: False, partial: False 36 branchmerge: True, force: False, partial: False
37 ancestor: e6dc8efe11cc, local: 6a0df1dad128+, remote: 484bf6903104 37 ancestor: e6dc8efe11cc, local: 6a0df1dad128+, remote: 484bf6903104
38 preserving foo for resolve of bar
39 preserving foo for resolve of foo
38 bar: remote copied from foo -> m 40 bar: remote copied from foo -> m
39 preserving foo for resolve of bar
40 foo: versions differ -> m
41 preserving foo for resolve of foo
42 updating: bar 1/2 files (50.00%) 41 updating: bar 1/2 files (50.00%)
43 picked tool 'internal:merge' for bar (binary False symlink False) 42 picked tool 'internal:merge' for bar (binary False symlink False)
44 merging foo and bar to bar 43 merging foo and bar to bar
45 my bar@6a0df1dad128+ other bar@484bf6903104 ancestor foo@e6dc8efe11cc 44 my bar@6a0df1dad128+ other bar@484bf6903104 ancestor foo@e6dc8efe11cc
46 premerge successful 45 premerge successful
46 foo: versions differ -> m
47 updating: foo 2/2 files (100.00%) 47 updating: foo 2/2 files (100.00%)
48 picked tool 'internal:merge' for foo (binary False symlink False) 48 picked tool 'internal:merge' for foo (binary False symlink False)
49 merging foo 49 merging foo
50 my foo@6a0df1dad128+ other foo@484bf6903104 ancestor foo@e6dc8efe11cc 50 my foo@6a0df1dad128+ other foo@484bf6903104 ancestor foo@e6dc8efe11cc
51 premerge successful 51 premerge successful