Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Headers output separate from their diff... #8

Open
wesalvaro opened this issue Jun 25, 2018 · 4 comments
Open

Headers output separate from their diff... #8

wesalvaro opened this issue Jun 25, 2018 · 4 comments

Comments

@wesalvaro
Copy link

moving the print out into the diff header line case (out of the else) fixed it for the most part.

@junghans
Copy link
Owner

Do you have an example of what you would except vs. what you got?

@junghans
Copy link
Owner

Ping @wesalvaro

@wesalvaro
Copy link
Author

I don't have any handy, but it was like this:

=== FILENAME_A
=== FILENAME_B
DIFF_A
DIFF_A
DIFF_A
DIFF_B
DIFF_B
DIFF_B

That kind of thing.

@hop
Copy link

hop commented Jul 28, 2022

Here's an example:

$ hg diff
diff -r 64dde7a5ac8b bar
--- a/bar       Thu Jul 28 23:47:41 2022 +0200
+++ b/bar       Fri Jul 29 00:34:33 2022 +0200
@@ -1,1 +1,1 @@
-bar
+bary
diff -r 64dde7a5ac8b foo
--- a/foo       Thu Jul 28 23:47:41 2022 +0200
+++ b/foo       Fri Jul 29 00:34:33 2022 +0200
@@ -1,1 +1,1 @@
-foo
+foox
$ hg extdiff -p cwdiff -o -d
diff spam.64dde7a5ac8b/bar spam/bar
--- spam.64dde7a5ac8b/bar       2022-07-28 23:47:41.000000000 +0200
+++ spam/bar    2022-07-29 00:34:42.873833000 +0200
@@ -1 +1 @@
diff spam.64dde7a5ac8b/foo spam/foo
--- spam.64dde7a5ac8b/foo       2022-07-28 23:47:41.000000000 +0200
+++ spam/foo    2022-07-29 00:34:42.873833000 +0200
@@ -1 +1 @@
bar
foobary
foox

Seems to work as long as there is only one file changed. Works for more complex diffs, even if more than one file is changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants