cvsserver: Handle re-added files correctly
We can't unconditionally assign revision 1.1 to newly added files. In case the file did exist in the past and was deleted we need to honor the old revision number. Signed-off-by: Frank Lichtenheld <frank@lichtenheld.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
adb7b5fc86
commit
a7da9adb1f
@ -2454,7 +2454,7 @@ sub update
|
||||
#$log->debug("ADDED $name");
|
||||
$head->{$name} = {
|
||||
name => $name,
|
||||
revision => 1,
|
||||
revision => $head->{$name}{revision} ? $head->{$name}{revision}+1 : 1,
|
||||
filehash => $hash,
|
||||
commithash => $commit->{hash},
|
||||
modified => $commit->{date},
|
||||
|
Loading…
Reference in New Issue
Block a user