[cvsnt] release -y option ignored v2.5.03

=?ISO-2022-JP?B?RUNDV0VCGyRCMT8xRCU7JXMlPyE8ISElYiE8JSwlcxsoQg==?= morgan at ecc.co.jp
Fri Jun 6 08:15:30 BST 2008


Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.


Hi,

Just noticed that the release command seems to ignore the -y option.

Reproduction:
For any existing module, execute release command with the -y option.
>cvs release -y arbitrarymodule
Are you sure you want to release directory 'arbitrarymodule': y
** `release' aborted by user choice.

Additional Information:
A brief cvs source inspection would appear to support this.
src/release.cpp from cvs.cvsnt.org
------------------------snip---------------------------------
117: while ((c = getopt (argc, argv, "+Qdeqfy")) != -1)
118: {
...
144: }
...
186: if (!really_quiet)
		....
203:	if(!yes_flag)
204:		c=yesno_prompt(tmp,"Modified files",0);
205:	else
206:		printf("%sy\n",tmp);
207:	xfree(tmp);
208:	if (c!='y')			/* "No" */
209:	{
210:		(void) fprintf (stderr, "** '%s' aborted by user choice.\n",
211:		command_name);
212:		xfree (repository);
213:		if (restore_cwd (&cwd, NULL))
214:				error_exit ();
215:		continue;
216:	}
217:}
...
------------------------snip---------------------------------

Workaround:
Setting the -Q cvs option (really_quiet) will skip this check, and the
release will complete.
e.g.
>cvs -Q release -y arbitrarymodule

Best regards,

Morgan

-- 
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

ECC $B%&%'%V%9%/!<%k1?1D%;%s%?!<!!(B
$B>&IJ3+H/!!%A!<%U(B
$B%b!<%,%s!&%i%s%G%#(B

$B")(B556-0016$BBg:e;TO2B.6h85D.#2!]#3!]#1#9=;M'@8L?FqGHFn%S%k#2#F(B
$B#T#E#L!'(B06-6636-5420$B!!#F#A#X!'(B06-6636-5440
MAIL: morgan at ecc.co.jp    HTTP: www.ecc.co.jp
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*


More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook