cvsserver: Use Merged response instead of Update-existing for merged files
authorFrank Lichtenheld <redacted>
Tue, 6 Mar 2007 09:42:24 +0000 (10:42 +0100)
committerJunio C Hamano <redacted>
Mon, 12 Mar 2007 05:49:08 +0000 (22:49 -0700)
Using Update-existing leads to the client forgetting about the "locally
modified" status of the file which can lead to loss of local changes on
later updates.

Signed-off-by: Frank Lichtenheld <redacted>
Acked-by: Martin Langhoff <redacted>
Signed-off-by: Junio C Hamano <redacted>
git-cvsserver.perl

index 1bf892e4c130b20d39e4962595fa9040001d9fad..65fcc840497fb44fd0bd843b6eedaab258d8b88f 100755 (executable)
@@ -957,12 +957,12 @@ sub req_update
             {
                 $log->info("Merged successfully");
                 print "M M $filename\n";
-                $log->debug("Update-existing $dirpart");
+                $log->debug("Merged $dirpart");
 
                 # Don't want to actually _DO_ the update if -n specified
                 unless ( $state->{globaloptions}{-n} )
                 {
-                    print "Update-existing $dirpart\n";
+                    print "Merged $dirpart\n";
                     $log->debug($state->{CVSROOT} . "/$state->{module}/$filename");
                     print $state->{CVSROOT} . "/$state->{module}/$filename\n";
                     my $kopts = kopts_from_path($filepart);
@@ -978,7 +978,7 @@ sub req_update
                 # Don't want to actually _DO_ the update if -n specified
                 unless ( $state->{globaloptions}{-n} )
                 {
-                    print "Update-existing $dirpart\n";
+                    print "Merged $dirpart\n";
                     print $state->{CVSROOT} . "/$state->{module}/$filename\n";
                     my $kopts = kopts_from_path($filepart);
                     print "/$filepart/1.$meta->{revision}/+/$kopts/\n";
git clone https://git.99rst.org/PROJECT