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)

enhancement

Tracking

(Not tracked)

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
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
(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.
Can you provide a permalink? That one rotted.
Flags: needinfo?(sledru)
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)
Priority: -- → P3
Product: Firefox Build System → Developer Infrastructure
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.