diff --git a/latexdiff-vc b/latexdiff-vc index 1fd5f2d..9100c9b 100755 --- a/latexdiff-vc +++ b/latexdiff-vc @@ -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"; @@ -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;