[CentOS] unable to check in code to svn when files contain spaces or characters

2011-01-24 Thread Agnello George
i got a file like this and i need add it into my svn admin/upload_data/FINAL leg list 19_01_2010 to agar (Merged data in one).xls i as able to add other files with space using the following command : svn st |grep ? |cut -c8- |sed 's/ /\\ /g' |xargs svn add however there are some special c

Re: [CentOS] unable to check in code to svn when files contain spaces or characters

2011-01-24 Thread Nico Kadel-Garcia
On Mon, Jan 24, 2011 at 6:57 AM, Agnello George wrote: > i got a file like this and i need add it into my svn > > admin/upload_data/FINAL  leg  list  19_01_2010 to  agar  (Merged data in > one).xls First: don't do this, seriously. You're begging for pain in your scripting to handle such files fro

Re: [CentOS] unable to check in code to svn when files contain spaces or characters

2011-01-24 Thread Agnello George
On Mon, Jan 24, 2011 at 6:25 PM, Nico Kadel-Garcia wrote: > On Mon, Jan 24, 2011 at 6:57 AM, Agnello George > wrote: > > i got a file like this and i need add it into my svn > > > > admin/upload_data/FINAL leg list 19_01_2010 to agar (Merged data in > > one).xls > > First: don't do this, se

Re: [CentOS] unable to check in code to svn when files contain spaces or characters

2011-01-24 Thread Les Mikesell
On 1/24/11 5:57 AM, Agnello George wrote: > i got a file like this and i need add it into my svn > > admin/upload_data/FINAL leg list 19_01_2010 to agar (Merged data in > one).xls > > i as able to add other files with space using the following command : > > svn st |grep ? |cut -c8- |sed 's/

Re: [CentOS] unable to check in code to svn when files contain spaces or characters

2011-01-24 Thread Agnello George
On Mon, Jan 24, 2011 at 7:12 PM, Les Mikesell wrote: > On 1/24/11 5:57 AM, Agnello George wrote: > > i got a file like this and i need add it into my svn > > > > admin/upload_data/FINAL leg list 19_01_2010 to agar (Merged data in > one).xls > > > > i as able to add other files with space usi

Re: [CentOS] unable to check in code to svn when files contain spaces or characters

2011-01-24 Thread Les Mikesell
On 1/24/11 7:49 AM, Agnello George wrote: > > so here is my final answer > > instead of doing > > for i in $(svn st | grep "?" | awk '{print $2}'); do svn add $i;done > > i can do > > for i in $(svn st | grep "?" | awk '{print $2}'); do svn add *"$i" *;done > > This is working for me ... i wonder i

Re: [CentOS] unable to check in code to svn when files contain spaces or characters

2011-01-24 Thread cpolish
Nico Kadel-Garcia wrote: > Agnello George wrote: > > i got a file like this and i need add it into my svn > > > > admin/upload_data/FINAL  leg  list  19_01_2010 to  agar  (Merged data in > > one).xls > > First: don't do this, seriously. You're begging for pain in your > scripting to handle such fi

Re: [CentOS] unable to check in code to svn when files contain spaces or characters

2011-01-24 Thread Kai Schaetzl
svn is not meant to contain binary files (AFAIK Excel files are binary), there is no way to see a meaningful diff of these files. Furthermore, developers should be able to adapt to a naming scheme that avoids such problems. Kai ___ CentOS mailing li

Re: [CentOS] unable to check in code to svn when files contain spaces or characters

2011-01-24 Thread m . roth
Agnello George wrote: > On Mon, Jan 24, 2011 at 6:25 PM, Nico Kadel-Garcia > wrote: >> On Mon, Jan 24, 2011 at 6:57 AM, Agnello George >> wrote: >> >> Can you first explain why you want, or need, to do this? > > the reason i need to do this i want to automate the whole process of > checking i

Re: [CentOS] unable to check in code to svn when files contain spaces or characters

2011-01-24 Thread Les Mikesell
On 1/24/2011 8:31 AM, Kai Schaetzl wrote: > svn is not meant to contain binary files (AFAIK Excel files are binary), > there is no way to see a meaningful diff of these files. Furthermore, > developers should be able to adapt to a naming scheme that avoids such > problems. Subversion actually does

Re: [CentOS] unable to check in code to svn when files contain spaces or characters

2011-01-24 Thread Les Mikesell
On 1/24/2011 7:05 AM, Agnello George wrote: > > 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 . > > the developers have lots

Re: [CentOS] unable to check in code to svn when files contain spaces or characters

2011-01-25 Thread Nico Kadel-Garcia
On Mon, Jan 24, 2011 at 9:06 AM, wrote: > Nico Kadel-Garcia wrote: >> > i as able to add other files with space using the following command : >> > >> >  svn st |grep ? |cut -c8- |sed 's/ /\\ /g' |xargs svn add >> >> Second, stop playing with xargs in command line handling. It is not your >> fri