Closed Bug 613723 Opened 15 years ago Closed 7 years ago

hg diff --git does not include base revision in output

Categories

(Tamarin Graveyard :: Tools, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX
Future

People

(Reporter: pnkfelix, Unassigned)

Details

A discussion amongst the team revealed a short-coming of generating git-formatted diff's from Mercurial: it does not include the base revision in its output, which can sometimes be useful information for someone planning to apply a patch. Illustration: hgplay/diffdemo % hg log changeset: 0:594fee7fd309 tag: tip user: Felix S Klock II <fklockii@adobe.com> date: Sat Nov 20 07:44:28 2010 -0500 summary: init rev hgplay/diffdemo % hg diff diff -r 594fee7fd309 hello.txt --- a/hello.txt Sat Nov 20 07:44:28 2010 -0500 +++ b/hello.txt Sat Nov 20 07:45:43 2010 -0500 @@ -1,1 +1,1 @@ -Hello World +Goodbye World hgplay/diffdemo % hg diff --git diff --git a/hello.txt b/hello.txt --- a/hello.txt +++ b/hello.txt @@ -1,1 +1,1 @@ -Hello World +Goodbye World hgplay/diffdemo % I am not the only person who has noticed this; perhaps a solution will appear here: http://stackoverflow.com/questions/2967493/mercurial-include-revisions-in-git-diff but if none appears there, it would be worth a couple hours of effort to see if its easy to make a Mercurial extension that added that first line of information back in.
Flags: flashplayer-qrb+
Target Milestone: --- → Future
Tamarin is a dead project now. Mass WONTFIX.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
Tamarin isn't maintained anymore. WONTFIX remaining bugs.
You need to log in before you can comment on or make changes to this bug.