Skip to content

Commit

Permalink
Merge pull request #94 from junghans/master
Browse files Browse the repository at this point in the history
fixes for hg (fix #93)
  • Loading branch information
ftilmann authored Apr 4, 2017
2 parents eff7699 + 9db7e3b commit 6914627
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion latexdiff-vc
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ if ( scalar(@revs)>0 ) {
# $diffcmd = "git diff ";
# $patchcmd = "patch -R -p1";
} elsif ( $vc eq "HG" ) {
$diffcmd = "hg diff -r";
$diffcmd = "hg diff --root . -r";
$patchcmd = "patch -R -p1";
} else {
print STDERR "Unknown versioning system $vc \n";
Expand Down Expand Up @@ -382,6 +382,11 @@ if ( ($vc eq "SVN" || $vc eq "CVS") && scalar(@revs)) {
length($revs[0]) > 0 or $revs[0]="HEAD";
}

if ($vc eq "HG" && scalar(@revs)) {
length($revs[$#revs]) > 0 or $revs[$#revs]="tip";
length($revs[0]) > 0 or $revs[0]="tip";
}

### print STDERR "DEBUG revs($#revs): " . join(":",@revs) . "\n";
### print STDERR "DEBUG Files($#files): $file1 " . join(":",@files) . "\n";
print STDERR "DEBUG LDOptions($#ldoptions): " . join(":",@ldoptions) . "\n" if $debug;
Expand Down

0 comments on commit 6914627

Please sign in to comment.