Skip to content

Commit

Permalink
Merge branch 'so/cvsserver-update'
Browse files Browse the repository at this point in the history
* so/cvsserver-update:
  cvsserver: make the output of 'update' more compatible with cvs.
  • Loading branch information
Junio C Hamano committed Jan 7, 2010
2 parents 693f2b1 + 8e4c4e7 commit aec7de4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions git-cvsserver.perl
Original file line number Diff line number Diff line change
Expand Up @@ -981,13 +981,29 @@ 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);

$log->debug("Processing file $filename");

unless ( $state->{globaloptions}{-Q} || $state->{globaloptions}{-q} )
{
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";
}
}

# if we have a -C we should pretend we never saw modified stuff
if ( exists ( $state->{opt}{C} ) )
{
Expand Down

0 comments on commit aec7de4

Please sign in to comment.