Sep 18

I want to move all files in this svn dir:

svn list http://svn.atld1/svn-prodops/sysadmin

to:

svn list http://svn.atld1/svn-prodops/sysadmin/scripts

Doing svn mv would see obvious and using xargs or -exec might work. I prefer not to use any brain energy on a shell script. I just do it in ruby in 5 minutes:

svn list http://svn.atld1/svn-prodops/sysadmin > /tmp/script.list

Write this to a ruby file:

f = File.open("/tmp/script.list")
f.each_line {|line|
cmd = "svn mv http://svn.atld1/svn-prodops/sysadmin/#{line.strip}
http://svn.atld1/svn-prodops/sysadmin/scripts/ -m
\"moving #{line} to scripts \" "
puts "running: #{cmd}"
`#{cmd}"
}

Now execute the file above after double checking. Viola done even with relevant comments for each move!

Tagged with:
Feb 23

This error is extremely frustrating. It occurs when the .svn info is missing in a directory. In my example this happens when running ‘rake doc:app’  and I have found only one sequence that will fix this. In my case, I am removing doc from subversion and going to manage outside of source control.

To fix:

  1. cd /doc/app
  2. mv ‘app’ ‘app-todelete’
  3. do a new checkout from svn just on the directory you renamed. Like so:
    svn co svn+ssh://usery@mysecre.server.com/var/www/apps/repos/trunk/doc/app
  4. The newest version in source should be in the proper location.
  5. You will unfortunately have to merge any changes from the old directory, as in my case ‘app-todelete’

Enjoy!

Tagged with: