From a2c598e9ba17aa48842dd6a04e94c0273764e7dd Mon Sep 17 00:00:00 2001 From: Jacob Bower Date: Thu, 4 Oct 2018 19:01:26 -0700 Subject: [PATCH] Fix handling of --rev when using hg diff --since-last-submit-o2 Summary: Second-order diff was hardcoded to use "." even if another rev was specified on the CLI. Reviewed By: shashkambh Differential Revision: D10212547 fbshipit-source-id: b9867ba3e2141ee3c9a8c67a83e9c039da2abf41 --- hgext/arcdiff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hgext/arcdiff.py b/hgext/arcdiff.py index 28b9d01253..29698ef1e1 100644 --- a/hgext/arcdiff.py +++ b/hgext/arcdiff.py @@ -183,7 +183,7 @@ def _diff(orig, ui, repo, *pats, **opts): pats = tuple(os.path.join(repo.root, p) for p in prev | curr) if opts.get("since_last_submit_2o"): - return _diff2o(ui, repo, rev, ".", **opts) + return _diff2o(ui, repo, rev, targetrev, **opts) else: return orig(ui, repo.unfiltered(), *pats, **opts)