##// END OF EJS Templates
diff: suppress `merging foo` output lines when performing a merge diff...
Augie Fackler -
r47178:62a0b5da default
parent child Browse files
Show More
@@ -2576,7 +2576,9 b' def diff(ui, repo, *pats, **opts):'
2576 },
2576 },
2577 b'diff --merge',
2577 b'diff --merge',
2578 ):
2578 ):
2579 repo.ui.pushbuffer()
2579 mergemod.merge(pctx2, wc=wctx)
2580 mergemod.merge(pctx2, wc=wctx)
2581 repo.ui.popbuffer()
2580 ctx1 = wctx
2582 ctx1 = wctx
2581 else:
2583 else:
2582 ctx1 = ctx2.p1()
2584 ctx1 = ctx2.p1()
@@ -197,7 +197,6 b" must be similar to 'hg diff --change 5':"
197 merge diff should show only manual edits to a merge:
197 merge diff should show only manual edits to a merge:
198
198
199 $ hg diff --merge -c 6
199 $ hg diff --merge -c 6
200 merging file.txt
201 (no diff output is expected here)
200 (no diff output is expected here)
202
201
203 Construct an "evil merge" that does something other than just the merge.
202 Construct an "evil merge" that does something other than just the merge.
@@ -228,7 +227,6 b' Contrast with the `hg diff -c 7` version'
228 up, making it easy to identify changes someone is otherwise trying to sneak
227 up, making it easy to identify changes someone is otherwise trying to sneak
229 into a merge.
228 into a merge.
230 $ hg diff --merge -c 7
229 $ hg diff --merge -c 7
231 merging file.txt
232 diff -r 8ad85e839ba7 file.txt
230 diff -r 8ad85e839ba7 file.txt
233 --- a/file.txt Thu Jan 01 00:00:00 1970 +0000
231 --- a/file.txt Thu Jan 01 00:00:00 1970 +0000
234 +++ b/file.txt Thu Jan 01 00:00:00 1970 +0000
232 +++ b/file.txt Thu Jan 01 00:00:00 1970 +0000
@@ -277,7 +275,6 b" Without --merge, it's a diff against p1"
277 +this file is new in p2 of the merge
275 +this file is new in p2 of the merge
278 With --merge, it's a diff against the conflicted content.
276 With --merge, it's a diff against the conflicted content.
279 $ hg diff --merge -c 11
277 $ hg diff --merge -c 11
280 merging file.txt
281 diff -r 5010caab09f6 file.txt
278 diff -r 5010caab09f6 file.txt
282 --- a/file.txt Thu Jan 01 00:00:00 1970 +0000
279 --- a/file.txt Thu Jan 01 00:00:00 1970 +0000
283 +++ b/file.txt Thu Jan 01 00:00:00 1970 +0000
280 +++ b/file.txt Thu Jan 01 00:00:00 1970 +0000
General Comments 0
You need to be logged in to leave comments. Login now