From 16e5a0437ffb30afcc4693afeb2ce06eb3919835 Mon Sep 17 00:00:00 2001 From: Christoph Junghans Date: Mon, 3 Apr 2017 17:55:10 -0600 Subject: [PATCH] set revision to 'tip' (for hg) when empty (fix #93) --- latexdiff-vc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/latexdiff-vc b/latexdiff-vc index 1fd5f2d..eb91f99 100755 --- a/latexdiff-vc +++ b/latexdiff-vc @@ -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;