I need to run and SVN commit using Objective C The code to run SVN command is like this using an command line application
NSString *command = @"svn add folder; svn commit -m \"Test Add\""
NSArray *arguments = [NSArray arrayWithObjects:@"-c",command, nil];
NSTask *task = [[NSTask alloc] init];
[task setLaunchPath:@"/bin/sh"];
[task setArguments:arguments];
NSPipe *pipe = [NSPipe pipe];
[task setStandardOutput:pipe];
NSFileHandle *file = [pipe fileHandleForReading];
[task launch];
NSData *data = [file readDataToEndOfFile];
NSString *output = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
NSLog(@"Output %@",output);
but I am getting this error
svn: E155021: This client is too old to work with the working copy at ...
You need to get a newer Subversion client. For more details, see
http://subversion.apache.org/faq.html#working-copy-format-change
I tried updating the command line tools but didnt work
On initial stages I tried SVN commit using terminal but it also showed the same error so based on this link I have updated the SVN using terminal too but it still shows the error on running the code
I also updated /bin/sh with new SVN but doest work (Also tried with /bin/bash)
Any suggestion to avoid this error and commit it to repository ??