Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions eden/scm/sapling/cmdutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -1911,6 +1911,23 @@ def diffordiffstat(
hunksfilterfn=None,
):
"""show diff or diffstat."""
exttool = ui.config("diff", "tool")
if exttool and not stat:
from sapling.ext import extdiff

if not extdiff.cmdtable:
raise error.Abort(_("extdiff plugin not enabled"))

if exttool not in extdiff.cmdtable:
raise error.Abort(_("unknown extdiff tool '%s'") % exttool)

opts = {
"rev": [str(ctx1.rev()), str(ctx2.rev())],
"option": [],
}

extdiff.cmdtable[exttool][0](ui, repo, *list(match.files()), **opts)
return
if fp is None:
if stat:
write = ui.write
Expand Down