##// END OF EJS Templates
log: respect diff.merge in -p output...
Martin von Zweigbergk -
r47226:a788e4bb default draft
parent child Browse files
Show More
@@ -247,7 +247,7 b' class changesetdiffer(object):'
247 ui,
247 ui,
248 ctx.repo(),
248 ctx.repo(),
249 diffopts,
249 diffopts,
250 ctx.p1(),
250 diff_parent(ctx),
251 ctx,
251 ctx,
252 match=self._makefilematcher(ctx),
252 match=self._makefilematcher(ctx),
253 stat=stat,
253 stat=stat,
@@ -11,7 +11,8 b''
11 * There's a new `diff.merge` config option to show the changes
11 * There's a new `diff.merge` config option to show the changes
12 relative to an automerge for merge changesets. This makes it
12 relative to an automerge for merge changesets. This makes it
13 easier to detect and review manual changes performed in merge
13 easier to detect and review manual changes performed in merge
14 changesets. It is only supported by `hg diff --change` so far.
14 changesets. It is supported by `hg diff --change`, `hg log -p`
15 `hg incoming -p`, and `hg outgoing -p` so far.
15
16
16
17
17 == Bug Fixes ==
18 == Bug Fixes ==
@@ -1966,6 +1966,26 b' Diff here should be the same:'
1966 @@ -0,0 +1,1 @@
1966 @@ -0,0 +1,1 @@
1967 +b
1967 +b
1968
1968
1969
1970 Test that diff.merge is respected (file b was added on one side and
1971 and therefore merged cleanly)
1972
1973 $ hg log -pr 3 --config diff.merge=yes
1974 changeset: 3:8e07aafe1edc
1975 tag: tip
1976 parent: 2:b09be438c43a
1977 parent: 1:925d80f479bb
1978 user: test
1979 date: Thu Jan 01 00:00:00 1970 +0000
1980 summary: 3
1981
1982 diff -r 8e07aafe1edc a
1983 --- a/a Thu Jan 01 00:00:00 1970 +0000
1984 +++ b/a Thu Jan 01 00:00:00 1970 +0000
1985 @@ -1,1 +1,1 @@
1986 -b
1987 +c
1988
1969 $ cd ..
1989 $ cd ..
1970
1990
1971 'hg log -r rev fn' when last(filelog(fn)) != rev
1991 'hg log -r rev fn' when last(filelog(fn)) != rev
General Comments 0
You need to be logged in to leave comments. Login now