git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] cvsserver: make the output of 'update' more compatible with cvs.

From
SOSergei Organov <osv@javad.com>
Date
Dec 3, 2009, 20:12 UTC
Message-ID
<87zl5z4y0w.fsf@osv.gnss.ru>
Native cvs update outputs the string "cvs update: Updating <DIR>" for
every directory it processes (to stderr). This is used, e.g., by emacs
pcl-cvs to split files by directory. This commit implements this
feature in cvsserver.
---
 git-cvsserver.perl |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/git-cvsserver.perl b/git-cvsserver.perl
index 6dc45f5..5994951 100755
--- a/git-cvsserver.perl
+++ b/git-cvsserver.perl
@@ -981,10 +981,22 @@ sub req_update
 
     #$log->debug("update state : " . Dumper($state));
 
+    my $last_dirname = "///";
+    
     # foreach file specified on the command line ...
     foreach my $filename ( @{$state->{args}} )
     {
         $filename = filecleanup($filename);
+        my $cur_dirname = dirname($filename);
+        if ( $cur_dirname ne $last_dirname )
+        {
+            $last_dirname = $cur_dirname;
+            if ( $cur_dirname eq "" )
+            {
+                $cur_dirname = ".";
+            }
+            print "E cvs update: Updating $cur_dirname\n";
+        }
 
         $log->debug("Processing file $filename");
 
-- 
1.6.6.rc0.67.g68b144.dirty
Next: mmogilvi_git@miniinfo.net
Message 1 of 8 in “cvsserver: make the output of 'update' more compatible with cvs.”
  1. cvsserver: make the output of 'update' more compatible with cvs.Sergei Organov, Dec 3, 2009
  2. mmogilvi_git@miniinfo.netDec 5, 2009
  3. Sergei OrganovDec 7, 2009
  4. cvsserver: make the output of 'update' more compatible with cvs.Sergei Organov, Dec 7, 2009
  5. Nanako ShiraishiDec 30, 2009
  6. Junio C HamanoDec 31, 2009
  7. Martin LanghoffDec 31, 2009
  8. Junio C HamanoDec 31, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.