# Read the svn revision number
my $svn_rev = &read_rev($target);
-# TODO: compare what's known already with what's to be written
-
# Write it
&write_defn($svn_rev);
my $oldrev = 0;
# Do not override the file if new detected
- # revision isn't different from the existing one
+ # revision isn't zero nor different from the existing one
if ( -f $rev_file ) {
open(IN, "<$rev_file");
my $oldrevline = <IN>;
$oldrev = $1;
}
close(IN);
- if ( $rev == $oldrev ) {
- print STDERR "Not updating existing rev file at $rev\n";
+ if ( $rev == 0 or $rev == $oldrev ) {
+ print STDERR "Not updating existing rev file at $oldrev\n";
return;
}
}