-
Notifications
You must be signed in to change notification settings - Fork 335
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
Mercurial? #186
Comments
That would be dependent upon mercurial diffs being line-compatible with git's; I don't know if that's the case? I've never used mercurial (or, therefore, tested this) - but you could try: [extensions]
hgext.extdiff =
[extdiff]
cmd.dsf = diff-so-fancy | less --tabs=4 -RFX |
Thanks for the info! I just tried that, which gave me this:
Seems like it's trying to run the whole thing as a command, rather than treating
But then it just sat there forever, without doing anything. I ended up just creating a
|
Hm, actually the example at the bottom of this page does make it seem like pipes aren't supported for some reason.
That would suggest that git/hg diffs aren't compatible; so it chokes on the input. So it's interesting that you were able to create an
Still, at least it works I suppose! I might look into this at some point, see if I can make it work without needing a shell-level alias so we can document it as known-working (if unsupported and may break) with mercurial. |
I think Mercurial diffs are compatible with Git diffs (that is, they're in the same format). Not sure if that's the default configuration, but it's how it seems to be configured internally at Facebook. |
Looked into this a little bit, it seems both are based on GNU's "Unified Format", which makes sense. Git seems to extend it a little bit though, so if you run into issues with your current command, you may want to try adding |
With the help of some people that are much more expert in Adding this to my [alias]
diff = !HGPLAIN=1 $HG diff --pager=on --config pager.pager=diff-so-fancy |
Do you have instructions on how to configure this project to be used with Mercurial rather than Git?
The text was updated successfully, but these errors were encountered: