# HG changeset patch # User jfh # Date 1300723396 -3600 # Node ID 5c0e1222e7c07c4ca3e26ad2f3e2a06f58f57e71 # Parent 043238abda949cb36909ecca0bc9a149f2c65f81 extdiff: use absolute paths for any temporary files This allows the use of p4merge amongst possible other external tools. diff -r 043238abda94 -r 5c0e1222e7c0 hgext/extdiff.py --- a/hgext/extdiff.py Fri Mar 25 01:38:47 2011 +0100 +++ b/hgext/extdiff.py Mon Mar 21 17:03:16 2011 +0100 @@ -187,14 +187,14 @@ # Handle bogus modifies correctly by checking if the files exist if len(common) == 1: common_file = util.localpath(common.pop()) - dir1a = os.path.join(dir1a, common_file) + dir1a = os.path.join(tmproot, dir1a, common_file) label1a = common_file + rev1a - if not os.path.isfile(os.path.join(tmproot, dir1a)): + if not os.path.isfile(dir1a): dir1a = os.devnull if do3way: - dir1b = os.path.join(dir1b, common_file) + dir1b = os.path.join(tmproot, dir1b, common_file) label1b = common_file + rev1b - if not os.path.isfile(os.path.join(tmproot, dir1b)): + if not os.path.isfile(dir1b): dir1b = os.devnull dir2 = os.path.join(dir2root, dir2, common_file) label2 = common_file + rev2