Feeds:
Posts
Comments

Not a huge deal, but I spent a while fighting with various svn errors and finally figured it out.

Unlike distributed VCS, svn relies on clients and a server repo to handle source code. So if a svn 1.3.1 client checks out code the .svn folders are created using that version.

When a 1.6.11 svn client comes a long and tries to do an update from a 1.6.11 server repo the svn client major differences can cause problems.

Such as:

  • log entry missing 'name' attribute
  • svn: Error processing command 'rm'

svn: Argument list too long

Recently I needed to add thousands of files to an existing repository, but every time I tried svn add * or the svn import functionality I got the error:

svn: Argument list too long

I finally found help with this link but it did not work with file names with spaces.

So below I take the substring of the output in spaces and ? from the whole line before adding the file.

svn status | grep "^?" | awk '{ print substr($0,9,length($0))}' | while read f; do svn add "$f"; done

I’m sure more can be done to make this better, but this did the job I needed. For example using ls to import to svn would be helpful. For now this only works when svn status can be executed.

I think find is the best way to do this, with regex support; but again I just hacked my way to the finish line.

Title says it all, I can set individual columns of a list box to be enterable false using the property inspector, but I can’t do this for the overall listbox.

I have to either set each column to enterable false, or execute SET ENTERABLE(objName;False) at On Load event.

Forum based feature request with 4D.

Design a site like this with WordPress.com
Get started