forked from lix-project/hydra
fix mercurial diffs, should change to cloned repo first
This commit is contained in:
parent
13df3e4191
commit
d14f7c7720
|
@ -217,7 +217,7 @@ sub scmdiff : Chained('api') PathPart('scmdiff') Args(0) {
|
||||||
if($type eq "hg") {
|
if($type eq "hg") {
|
||||||
my $clonePath = scmPath . "/" . sha256_hex($uri);
|
my $clonePath = scmPath . "/" . sha256_hex($uri);
|
||||||
die if ! -d $clonePath;
|
die if ! -d $clonePath;
|
||||||
$branch = `hg log --template '{branch}' -r $rev2`;
|
$branch = `(cd $clonePath ; hg log --template '{branch}' -r $rev2)`;
|
||||||
$diff .= `(cd $clonePath ; hg log -r $rev1 -r $rev2 -b $branch)`;
|
$diff .= `(cd $clonePath ; hg log -r $rev1 -r $rev2 -b $branch)`;
|
||||||
$diff .= `(cd $clonePath ; hg diff -r $rev1:$rev2)`;
|
$diff .= `(cd $clonePath ; hg diff -r $rev1:$rev2)`;
|
||||||
} elsif ($type eq "git") {
|
} elsif ($type eq "git") {
|
||||||
|
|
Loading…
Reference in a new issue