提交 a7da9adb 编写于 作者: F Frank Lichtenheld 提交者: Junio C Hamano

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: NFrank Lichtenheld <frank@lichtenheld.de>
Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 adb7b5fc
......@@ -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},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册