Open
Bug 1513055
Opened 5 years ago
Updated 2 years ago
|mach clang-format| doesn't work with custom diff tool
Categories
(Developer Infrastructure :: Lint and Formatting, enhancement, P3)
Developer Infrastructure
Lint and Formatting
Tracking
(Not tracked)
NEW
People
(Reporter: botond, Unassigned)
References
Details
I use patdiff [1] to get nicer-looking "hg diff" output with mercurial. To do this, I have the following entries in my .hgrc: ``` [alias] diff = patdiff [extdiff] cmd.patdiff = ``` However, this breaks |mach clang-format|: $ ./mach clang-format hg diff: option -U not recognized It would be nice if I could both use |mach clang-format| and keep patdiff as my diff tool for "hg diff" output. [1] https://github.com/janestreet/patdiff
Comment 1•5 years ago
|
||
In bug 1510458, I updated the -s option to use a diff instead of hg diff. It should not happen anymore. Could you update and confirm? Thanks
Reporter | ||
Comment 2•5 years ago
|
||
(In reply to Sylvestre Ledru [:sylvestre] from comment #1) > In bug 1510458, I updated the -s option to use a diff instead of hg diff. > It should not happen anymore. Could you update and confirm? Thanks Assuming you mean update m-c? I'm using m-c from today, and the issue occurs.
Comment 3•5 years ago
|
||
OK, this is probably this line: https://searchfox.org/mozilla-central/source/python/mozbuild/mozbuild/mach_commands.py#2676
Blocks: clang-format
Comment 5•5 years ago
|
||
This is still https://searchfox.org/mozilla-central/source/python/mozbuild/mozbuild/mach_commands.py#2677 I think args = ["hg", "diff", "-U0", "-r" ".^"]
Flags: needinfo?(sledru)
Comment 6•5 years ago
|
||
Okay, thanks. Permalink for future reference in case that moves: https://searchfox.org/mozilla-central/rev/7a922172a94cfe24c7a48e0a581577895e1da8c4/python/mozbuild/mozbuild/mach_commands.py#2677
Updated•5 years ago
|
Priority: -- → P3
Updated•2 years ago
|
Product: Firefox Build System → Developer Infrastructure
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•