Show More
@@ -2016,6 +2016,7 b' def debugmergestate(ui, repo, *args, **o' | |||||
2016 | b'")}' |
|
2016 | b'")}' | |
2017 | b'{extras % " extra: {key} = {value}\n"}' |
|
2017 | b'{extras % " extra: {key} = {value}\n"}' | |
2018 | b'"}' |
|
2018 | b'"}' | |
|
2019 | b'{extras % "extra: {file} ({key} = {value})\n"}' | |||
2019 | ) |
|
2020 | ) | |
2020 |
|
2021 | |||
2021 | ms = mergestatemod.mergestate.read(repo) |
|
2022 | ms = mergestatemod.mergestate.read(repo) | |
@@ -2069,6 +2070,18 b' def debugmergestate(ui, repo, *args, **o' | |||||
2069 |
|
2070 | |||
2070 | fm_files.end() |
|
2071 | fm_files.end() | |
2071 |
|
2072 | |||
|
2073 | fm_extras = fm.nested(b'extras') | |||
|
2074 | for f, d in sorted(pycompat.iteritems(ms._stateextras)): | |||
|
2075 | if f in ms: | |||
|
2076 | # If file is in mergestate, we have already processed it's extras | |||
|
2077 | continue | |||
|
2078 | for k, v in pycompat.iteritems(d): | |||
|
2079 | fm_extras.startitem() | |||
|
2080 | fm_extras.data(file=f) | |||
|
2081 | fm_extras.data(key=k) | |||
|
2082 | fm_extras.data(value=v) | |||
|
2083 | fm_extras.end() | |||
|
2084 | ||||
2072 | fm.end() |
|
2085 | fm.end() | |
2073 |
|
2086 | |||
2074 |
|
2087 |
@@ -328,6 +328,7 b' test json output' | |||||
328 | [ |
|
328 | [ | |
329 | { |
|
329 | { | |
330 | "commits": [{"label": "working copy", "name": "local", "node": "57653b9f834a4493f7240b0681efcb9ae7cab745"}, {"label": "merge rev", "name": "other", "node": "dc77451844e37f03f5c559e3b8529b2b48d381d1"}], |
|
330 | "commits": [{"label": "working copy", "name": "local", "node": "57653b9f834a4493f7240b0681efcb9ae7cab745"}, {"label": "merge rev", "name": "other", "node": "dc77451844e37f03f5c559e3b8529b2b48d381d1"}], | |
|
331 | "extras": [], | |||
331 | "files": [{"ancestor_node": "2ed2a3912a0b24502043eae84ee4b279c18b90dd", "ancestor_path": "file1", "extras": [{"key": "ancestorlinknode", "value": "99726c03216e233810a2564cbc0adfe395007eac"}], "local_flags": "", "local_key": "60b27f004e454aca81b0480209cce5081ec52390", "local_path": "file1", "other_node": "6f4310b00b9a147241b071a60c28a650827fb03d", "other_path": "file1", "path": "file1", "state": "r"}, {"ancestor_node": "2ed2a3912a0b24502043eae84ee4b279c18b90dd", "ancestor_path": "file2", "extras": [{"key": "ancestorlinknode", "value": "99726c03216e233810a2564cbc0adfe395007eac"}], "local_flags": "", "local_key": "cb99b709a1978bd205ab9dfd4c5aaa1fc91c7523", "local_path": "file2", "other_node": "6f4310b00b9a147241b071a60c28a650827fb03d", "other_path": "file2", "path": "file2", "state": "u"}] |
|
332 | "files": [{"ancestor_node": "2ed2a3912a0b24502043eae84ee4b279c18b90dd", "ancestor_path": "file1", "extras": [{"key": "ancestorlinknode", "value": "99726c03216e233810a2564cbc0adfe395007eac"}], "local_flags": "", "local_key": "60b27f004e454aca81b0480209cce5081ec52390", "local_path": "file1", "other_node": "6f4310b00b9a147241b071a60c28a650827fb03d", "other_path": "file1", "path": "file1", "state": "r"}, {"ancestor_node": "2ed2a3912a0b24502043eae84ee4b279c18b90dd", "ancestor_path": "file2", "extras": [{"key": "ancestorlinknode", "value": "99726c03216e233810a2564cbc0adfe395007eac"}], "local_flags": "", "local_key": "cb99b709a1978bd205ab9dfd4c5aaa1fc91c7523", "local_path": "file2", "other_node": "6f4310b00b9a147241b071a60c28a650827fb03d", "other_path": "file2", "path": "file2", "state": "u"}] | |
332 | } |
|
333 | } | |
333 | ] |
|
334 | ] |
General Comments 0
You need to be logged in to leave comments.
Login now