<br><br><div class="gmail_quote">On Mon, Jan 24, 2011 at 6:25 PM, Nico Kadel-Garcia <span dir="ltr"><<a href="mailto:nkadel@gmail.com">nkadel@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Mon, Jan 24, 2011 at 6:57 AM, Agnello George<br>
<<a href="mailto:agnello.dsouza@gmail.com">agnello.dsouza@gmail.com</a>> wrote:<br>
> i got a file like this and i need add it into my svn<br>
><br>
> admin/upload_data/FINAL leg list 19_01_2010 to agar (Merged data in<br>
> one).xls<br>
<br>
</div>First: don't do this, seriously. You're begging for pain in your<br>
scripting to handle such files from now on.<br>
<div class="im"><br>
<br>
> i as able to add other files with space using the following command :<br>
><br>
> svn st |grep ? |cut -c8- |sed 's/ /\\ /g' |xargs svn add<br>
<br>
</div>Second, stop playing with xargs in command line handling. It is not your friend.<br>
<br>
You should be able to do "svn add "admin/upload_data/FINAL leg list<br>
<br>
svn add "admin/upload_data/FINAL leg list 19_01_2010 to agar<br>
<div class="im">(Merged data in one).xls"<br>
<br>
</div><div class="im">> however there are some special characters like ( ) +#@ that svn cannot<br>
> understand as the full path of the file .<br>
<br>
</div>Well, *YES*. You're going to have difficulty getting characters that<br>
mean things to the subversion somponent numbering scheme or the<br>
Subversion URL scheme, such as '@', '/', and '#' into the actual<br>
filenames. Even if you can leverage your way past this by stuffing in<br>
enough backslashes, you're effectively destabilizing your Subversion<br>
repository and scripting to handle it, especially post-commit scripts.<br>
<div class="im"><br>
> can some one help me in this in perl or in shell .<br>
><br>
> --<br>
> Regards<br>
> Agnello D'souza<br>
<br>
</div>Can you first explain why you want, or need, to do this?<br>
_______________________________________________<br>
CentOS mailing list<br>
<a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br>
<a href="http://lists.centos.org/mailman/listinfo/centos" target="_blank">http://lists.centos.org/mailman/listinfo/centos</a><br>
</blockquote></div><br> the reason i need to do this i want to automate the whole process of checking into to svn from dev server and checking out to QA server for testing purpose , my script would change the config file in QA server . <br>
<br>the developers have lots of issues while checking in . <br><br><br clear="all"><br>-- <br>Regards <br>Agnello D'souza<br><br><br>