##// END OF EJS Templates
Add notes about diff/merge asymmetry to export, diff, and log
Matt Mackall -
r3822:28134d82 default
parent child Browse files
Show More
@@ -856,6 +856,10 b' def diff(ui, repo, *pats, **opts):'
856
856
857 Differences between files are shown using the unified diff format.
857 Differences between files are shown using the unified diff format.
858
858
859 NOTE: diff may generate unexpected results for merges, as it will
860 default to comparing against the working directory's first parent
861 changeset if no revisions are specified.
862
859 When two revision arguments are given, then changes are shown
863 When two revision arguments are given, then changes are shown
860 between those revisions. If only one revision is specified then
864 between those revisions. If only one revision is specified then
861 that revision is compared to the working directory, and, when no
865 that revision is compared to the working directory, and, when no
@@ -879,7 +883,10 b' def export(ui, repo, *changesets, **opts'
879 Print the changeset header and diffs for one or more revisions.
883 Print the changeset header and diffs for one or more revisions.
880
884
881 The information shown in the changeset header is: author,
885 The information shown in the changeset header is: author,
882 changeset hash, parent and commit comment.
886 changeset hash, parent(s) and commit comment.
887
888 NOTE: export may generate unexpected diff output for merge changesets,
889 as it will compare the merge changeset against its first parent only.
883
890
884 Output may be to a file, in which case the name of the file is
891 Output may be to a file, in which case the name of the file is
885 given using a format string. The formatting rules are as follows:
892 given using a format string. The formatting rules are as follows:
@@ -1477,6 +1484,12 b' def log(ui, repo, *pats, **opts):'
1477 non-trivial parents, user, date and time, and a summary for each
1484 non-trivial parents, user, date and time, and a summary for each
1478 commit. When the -v/--verbose switch is used, the list of changed
1485 commit. When the -v/--verbose switch is used, the list of changed
1479 files and full commit message is shown.
1486 files and full commit message is shown.
1487
1488 NOTE: log -p may generate unexpected diff output for merge
1489 changesets, as it will compare the merge changeset against its
1490 first parent only. Also, the files: list will only reflect files
1491 that are different from BOTH parents.
1492
1480 """
1493 """
1481
1494
1482 get = util.cachefunc(lambda r: repo.changectx(r).changeset())
1495 get = util.cachefunc(lambda r: repo.changectx(r).changeset())
@@ -2174,6 +2187,11 b' def status(ui, repo, *pats, **opts):'
2174 files that match are shown. Files that are clean or ignored, are
2187 files that match are shown. Files that are clean or ignored, are
2175 not listed unless -c (clean), -i (ignored) or -A is given.
2188 not listed unless -c (clean), -i (ignored) or -A is given.
2176
2189
2190 NOTE: status may appear to disagree with diff if permissions have
2191 changed or a merge has occurred. The standard diff format does not
2192 report permission changes and diff only reports changes relative
2193 to one merge parent.
2194
2177 If one revision is given, it is used as the base revision.
2195 If one revision is given, it is used as the base revision.
2178 If two revisions are given, the difference between them is shown.
2196 If two revisions are given, the difference between them is shown.
2179
2197
General Comments 0
You need to be logged in to leave comments. Login now