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

Re: [PATCH] New files in git weren't being downloaded during CVS update

From
Simon 'corecode' Schubert <corecode@fs.ei.tum.de>
Date
Jan 22, 2007, 11:08 UTC
Message-ID
<45B49B22.6050806@fs.ei.tum.de>
In-Reply-To
<200701221056.27599.andyparkins@gmail.com>
Andy Parkins wrote:
Show 9 quoted lines
> @@ -876,9 +876,9 @@ sub req_update
>                  print "MT newline\n";
>  		next;
>  	    }
> -	    elsif ( !defined($wrev) || $wrev == 0 )
> +	    elsif ( (!defined($wrev) || $wrev == 0) && (!defined($meta->{revision}) || $meta->{revision} == 0) )
>  	    {
> -	        $log->info("Tell the client the file will be added");
> +	        $log->info("Tell the client the file is scheduled for addition");
This is nice but probably does not handle a collision (cvs output: file was added by a third party) well and will probably overwrite the locally added file.  however it is a step in the right direction.  from skimming the code I couldn't find collision handling anyways.
cheers
  simon
-- 
Serve - BSD     +++  RENT this banner advert  +++    ASCII Ribbon   /"\
Work - Mac      +++  space for low €€€ NOW!1  +++      Campaign     \ /
Party Enjoy Relax   |   http://dragonflybsd.org      Against  HTML   \
Dude 2c 2 the max   !   http://golden-apple.biz       Mail + News   / \
Previous: Andy Parkins
Message 8 of 8 in “New files in git weren't being downloaded during CVS update”
  1. New files in git weren't being downloaded during CVS updateAndy Parkins, Jan 21, 2007
  2. Junio C HamanoJan 22, 2007
  3. Martin LanghoffJan 22, 2007
  4. Junio C HamanoJan 22, 2007
  5. Andy ParkinsJan 22, 2007
  6. New files in git weren't being downloaded during CVS updateAndy Parkins, Jan 22, 2007
  7. New files in git weren't being downloaded during CVS updateAndy Parkins, Jan 22, 2007
  8. Simon 'corecode' SchubertJan 22, 2007

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.