[Request] [+ ] D8970: extdiff: remove dir2root and pass full path as dir2 in _runperfilediff()
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Sat Aug 29 14:12:18 UTC 2020
pulkit created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
The only use of `dir2root` was to join with `dir2` to generate the path for
other side of diff. Like in previous patch, `dir1a` and `dir1b` are full paths
and no longer base names, hence we pass `dir2` as full path too and making
`dir2root` unrequired.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D8970
AFFECTED FILES
hgext/extdiff.py
CHANGE DETAILS
diff --git a/hgext/extdiff.py b/hgext/extdiff.py
--- a/hgext/extdiff.py
+++ b/hgext/extdiff.py
@@ -255,7 +255,6 @@
tmproot,
dir1a,
dir1b,
- dir2root,
dir2,
rev1a,
rev1b,
@@ -280,7 +279,7 @@
if not os.path.isfile(path1b):
path1b = pycompat.osdevnull
- path2 = os.path.join(dir2root, dir2, commonfile)
+ path2 = os.path.join(dir2, commonfile)
label2 = commonfile + rev2
if confirm:
@@ -501,8 +500,7 @@
tmproot=tmproot,
dir1a=os.path.join(tmproot, dir1a),
dir1b=os.path.join(tmproot, dir1b) if do3way else None,
- dir2root=dir2root,
- dir2=dir2,
+ dir2=os.path.join(dir2root, dir2),
rev1a=rev1a,
rev1b=rev1b,
rev2=rev2,
To: pulkit, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20200829/fb064710/attachment-0001.html>
More information about the Mercurial-patches
mailing list