Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
rsync functionality in Ruby?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Bil Kleb, post: 4573938"] Is there anyway to use SVN's import command to get you 80% of the way there? See, for example, [URL]http://subversion.tigris.org/faq.html#in-place-import[/URL] Or, some combination of `cp` and `svn diff`? E.g., svn co working_copy cp -r unversioned working_copy svn diff > patch [process the patch results] or perhaps some sort of inverse, e.g., U_DIRS=`find unversioned -type d` U_FILES=`find unversioned -type f` svn co working_copy cd working_copy S_DIRS=`find . \( -name .svn -prune \) -o -type d -print` S_FILES=`find . \( -name .svn -prune \) -o -type f -print` svn rm --force [ S_DIRS - U_DIRS ] svn rm --force [ S_FILES - U_FILES ] cp -r unversioned/* . svn ci -m'To sync with unversioned.' Regards, [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
rsync functionality in Ruby?
Top