Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Branch
- stable
- Lint
No Linters Available - Unit
No Unit Test Coverage
| No Linters Available |
| No Unit Test Coverage |
| Path | Packages | |||
|---|---|---|---|---|
| M | mercurial/commands.py (3 lines) | |||
| M | tests/test-help.t (3 lines) |
| Commit | Parents | Author | Summary | Date |
|---|---|---|---|---|
| 0ba0a0f79b7d | 9889bf0fd960 | Matt Harbison | Wed, May 4, 1:39 PM |
| Show differences between revisions for the specified files. | Show differences between revisions for the specified files. | ||||
| Differences between files are shown using the unified diff format. | Differences between files are shown using the unified diff format. | ||||
| .. note:: | .. note:: | ||||
| :hg:`diff` may generate unexpected results for merges, as it will | :hg:`diff` may generate unexpected results for merges, as it will | ||||
| default to comparing against the working directory's first | default to comparing against the working directory's first | ||||
| parent changeset if no revisions are specified. | parent changeset if no revisions are specified. To diff against the | ||||
| conflict regions, you can use `--config diff.merge=yes`. | |||||
| By default, the working directory files are compared to its first parent. To | By default, the working directory files are compared to its first parent. To | ||||
| see the differences from another revision, use --from. To see the difference | see the differences from another revision, use --from. To see the difference | ||||
| to another revision, use --to. For example, :hg:`diff --from .^` will show | to another revision, use --to. For example, :hg:`diff --from .^` will show | ||||
| the differences from the working copy's grandparent to the working copy, | the differences from the working copy's grandparent to the working copy, | ||||
| :hg:`diff --to .` will show the diff from the working copy to its parent | :hg:`diff --to .` will show the diff from the working copy to its parent | ||||
| (i.e. the reverse of the default), and :hg:`diff --from 1.0 --to 1.2` will | (i.e. the reverse of the default), and :hg:`diff --from 1.0 --to 1.2` will | ||||
| show the diff between those two revisions. | show the diff between those two revisions. | ||||
| Show differences between revisions for the specified files. | Show differences between revisions for the specified files. | ||||
| Differences between files are shown using the unified diff format. | Differences between files are shown using the unified diff format. | ||||
| Note: | Note: | ||||
| 'hg diff' may generate unexpected results for merges, as it will | 'hg diff' may generate unexpected results for merges, as it will | ||||
| default to comparing against the working directory's first parent | default to comparing against the working directory's first parent | ||||
| changeset if no revisions are specified. | changeset if no revisions are specified. To diff against the conflict | ||||
| regions, you can use '--config diff.merge=yes'. | |||||
| By default, the working directory files are compared to its first parent. | By default, the working directory files are compared to its first parent. | ||||
| To see the differences from another revision, use --from. To see the | To see the differences from another revision, use --from. To see the | ||||
| difference to another revision, use --to. For example, 'hg diff --from .^' | difference to another revision, use --to. For example, 'hg diff --from .^' | ||||
| will show the differences from the working copy's grandparent to the | will show the differences from the working copy's grandparent to the | ||||
| working copy, 'hg diff --to .' will show the diff from the working copy to | working copy, 'hg diff --to .' will show the diff from the working copy to | ||||
| its parent (i.e. the reverse of the default), and 'hg diff --from 1.0 --to | its parent (i.e. the reverse of the default), and 'hg diff --from 1.0 --to | ||||
| 1.2' will show the diff between those two revisions. | 1.2' will show the diff between those two revisions. | ||||