#9824 closed enhancement (fixed)
Add a simple way of showing the diff between two branches with DVCS
Reported by: | Remy Blank | Owned by: | Remy Blank |
---|---|---|---|
Priority: | high | Milestone: | 1.0 |
Component: | version control/browser | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: |
Added an input in the source browser to view the diff against another revision. |
||
API Changes: | |||
Internal Changes: |
Description
To show the diff between two branches, it is currently necessary to go through the AnyDiffModule
, which is quite cumbersome. A simpler way of going to that diff from the browser page would be very useful.
I propose adding an additional "View diff against:" field next to the "View revision:" field. Entering a revision there and pressing ENTER would navigate to the corresponding diff. Of course, e.g. in the case of Mercurial, the revision can also be a branch or tag name, which makes it very convenient for viewing the diff between two branches. The branch and tag names are even conveniently shown in the "Visit:" selector.
The convenience would be more difficult to achieve for VCS that represent branches as paths (e.g. Subversion). In this case, the AnyDiffModule
is probably the right tool.
Patch coming up shortly.
Attachments (1)
Change History (5)
by , 14 years ago
Attachment: | 9824-diff-against-r10300.patch added |
---|
comment:1 by , 14 years ago
Note that the behavior is the same as e.g. the Mercurial command:
hg diff -r branch
That is, the diff is the diff from the branch to the currently browsed revision.
comment:2 by , 14 years ago
Priority: | normal → high |
---|
comment:4 by , 14 years ago
Release Notes: | modified (diff) |
---|
Add "View diff against:" field to the TracBrowser.