[cvsnt] embedding newlines in the -m option. how?

Lawson.Reed Reed.Lawson at IGT.com
Thu Sep 4 19:50:41 BST 2003


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.


I solved the whole problem by writing a Python Macro
for WinCVS. Works great.... for me... but not anyone
else. See: 
  [cvsnt] usage is restricted to repository administrators

Thanks.
__________________________________
Reed Lawson
IGT Firmware Engineering
(775) 448-0755



> -----Original Message-----
> From: Lawson.Reed 
> Sent: Wednesday, September 03, 2003 8:55 AM
> To: cvsnt at cvsnt.org cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook
> Subject: RE: [cvsnt] embedding newlines in the -m option. how?
> 
> 
> Thank you all for the responses. Glen hit the nail on the
> head. Maybe its not a problem :-)
> 
> John, that sounds like a good approach. I have Cygwin
> loaded. I wonder if the bash would work too. Thing 
> is I am driving this with a perl script and I think
> that the system() function calls command.exe. I 
> wonder if there is a way to change that....
> 
> Anyway, Thank you all again.
> __________________________________
> Reed Lawson
> IGT Firmware Engineering
> (775) 448-0755
> 
> 
> 
> > -----Original Message-----
> > From: John Hall [mailto:john-news1 at cambridgetechgroup.com]
> > Sent: Wednesday, September 03, 2003 6:00 AM
> > To: cvsnt at cvsnt.org cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook
> > Subject: Re: [cvsnt] embedding newlines in the -m option. how?
> > 
> > 
> > "Oliver Giesen" <ogware at gmx.net> wrote in message
> > news:bj4foh$dv0$1 at sisko.local.nodomain.org...
> > 
> > > > WinCVS does it somehow for "cvs commit -m "foo\n foo"" right?
> > 
> > > The problem is that in a console window or batch file the newline
> > > character is treated as a command delimiter. If you use the
> > > CreateProcess API to invoke CVS there is no problem embedding line
> > > feeds (unescaped) in the commandline string and cvs.exe 
> > seems to accept
> > > this without problems AFAICT.
> > >
> > > I haven't looked at the code yet but I assume WinCvs just 
> > displays the
> > > \n for the command dump and really uses CR LF...
> > >
> > > That said, I have no idea how to really do it from the 
> > commandline or a
> > > batch file and don't know if it is possible at all.
> > 
> > When I've wanted to embed newlines in comments with cvs 
> admin -m, I've
> > resorted
> > to using a version of zsh for Windows 
> > http://unxutils.sourceforge.net/:
> > 
> >  #cvs admin -m1.4:"This is the first line of a comment.
> >  dquote> And a second.
> >  dquote> " file.txt
> >  RCS file: /cvs/module/file.txt,v
> >  done
> > 
> > Cheers,
> > John
> > 
> > 
> > _______________________________________________
> > cvsnt mailing list
> > cvsnt at cvsnt.org cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook
> > http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt https://www.march-hare.com/cvspro/en.asp#downcvs
> > 
> _______________________________________________
> cvsnt mailing list
> cvsnt at cvsnt.org cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook
> http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt https://www.march-hare.com/cvspro/en.asp#downcvs
> 


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