Skip to content

Commit

Permalink
set revision to 'tip' (for hg) when empty (ftilmann#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
junghans committed Apr 4, 2017
1 parent eff7699 commit c69a752
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions latexdiff-vc
Original file line number Diff line number Diff line change
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 c69a752

Please sign in to comment.