<?xml version="1.0" encoding="UTF-8"?>
<codes type="array">
  <code>
    <code>svn propset svn:ignore '*' log
svn propset svn:ignore '*' tmp/cache
svn propset svn:ignore '*' tmp/pids
svn propset svn:ignore '*' tmp/sessions
svn propset svn:ignore '*' tmp/sockets
svn commit -m &quot;Set various ignores&quot;</code>
    <created-at type="datetime">2008-11-29T20:18:39Z</created-at>
    <description></description>
    <id type="integer">122</id>
    <language-id type="integer">42</language-id>
    <privated type="boolean">false</privated>
    <title>ignored rails' files in subversion</title>
    <updated-at type="datetime">2008-11-29T20:22:34Z</updated-at>
    <user-id type="integer">7</user-id>
  </code>
  <code>
    <code>svn propset svn:ignore &#8220;*&#8221; public/photo/</code>
    <created-at type="datetime">2008-11-21T17:03:38Z</created-at>
    <description>ignores all files in 'photo' folder</description>
    <id type="integer">110</id>
    <language-id type="integer">42</language-id>
    <privated type="boolean">false</privated>
    <title>ignore all files from a folder</title>
    <updated-at type="datetime">2008-11-21T17:03:38Z</updated-at>
    <user-id type="integer">7</user-id>
  </code>
  <code>
    <code>svn up -r PREV yourfile</code>
    <created-at type="datetime">2008-11-18T02:19:51Z</created-at>
    <description></description>
    <id type="integer">106</id>
    <language-id type="integer">42</language-id>
    <privated type="boolean">false</privated>
    <title>reverting a file with subversion</title>
    <updated-at type="datetime">2008-11-18T02:19:51Z</updated-at>
    <user-id type="integer">7</user-id>
  </code>
  <code>
    <code>find . -name .svn -exec rm -rf {} \; 

find . -name .svn -print0 | xargs -0 rm -rf
</code>
    <created-at type="datetime">2008-09-29T00:08:07Z</created-at>
    <description>removes all .svn directories recursively </description>
    <id type="integer">68</id>
    <language-id type="integer">42</language-id>
    <privated type="boolean">false</privated>
    <title>remove SVN control</title>
    <updated-at type="datetime">2008-11-18T01:04:00Z</updated-at>
    <user-id type="integer">7</user-id>
  </code>
  <code>
    <code>#!/bin/bash

echo &quot;########################################&quot;
echo &quot;&quot;
echo &quot;&quot;
echo &quot;This bash script creates a new rails project and do the initial svn import with ignoring/deleting files from subversion&quot;
echo &quot;&quot;
echo &quot;&quot;
echo &quot;#######################################&quot;

echo &quot;Enter svn username: &quot;
read username
echo &quot;Enter the svn url: &quot;
read svn_url

echo &quot;Enter Rails Application Path:(eg: /home/leonardofaria/Sites/): &quot;
read app_path
echo &quot;Enter Application Name: &quot;
read app_name

echo &quot;######################################&quot;
echo &quot;Please verify the following variables: &quot;
echo &quot;Svn Username: ${username}&quot;
echo &quot;Svn URL: ${svn_url}&quot;
echo &quot;Application Path: ${app_path}&quot;
echo &quot;Application name: ${app_name}&quot;

echo &quot;Proceed (y/n)&quot;
read proceed

if [ ${proceed} = n ] || [ ${proceed} = N ]
    then
    echo &quot;Terminating...&quot;
    exit 0
elif [ ${proceed} = y ] || [ ${proceed} = Y ]
    then
    app_root=&quot;${app_path}/${app_name}&quot;
    echo &quot;Generating rails project: (${app_root})&quot;
    rails ${app_root}

    echo &quot;SVNinitial import: &quot;
    svn import ${app_root} ${svn_url} -m &quot;Initial Import&quot; --username $username

    rm -rf ${app_root}
   
    echo &quot;Checking out from svn: &quot;

    svn checkout ${svn_url} ${app_root}
    cd ${app_root}
    echo &quot;Removing all log files from SVN&quot;
    svn remove log/*
    echo &quot;commiting...&quot;
    svn commit -m 'removing all log files from subversion'
    echo &quot;Ignoring all log files under log dir&quot;
    svn propset svn:ignore &quot;*.log&quot; log/
    echo &quot;Updating and commiting...&quot;
    svn update log/
    svn commit -m 'Ignoring all files in /log/ ending in .log'

    echo &quot;Ignoring cache, sessions, sockets inside tmp dir&quot;
    svn propset svn:ignore &quot;*&quot; tmp/sessions tmp/cache tmp/sockets
    echo &quot;commiting tmp &quot;
    svn commit -m &quot;Ignoring all files in /tmp/&quot;
    echo &quot;Updating and commiting again....&quot;

    svn update tmp/
    svn commit -m 'Ignore the whole tmp/ directory, might not work on subdirectories?'
    echo &quot;Moving database.yml to database.example&quot;
    svn move config/database.yml config/database.example
    echo &quot;commiting...&quot;
    svn commit -m 'Moving database.yml to database.example to provide a template for anyone who checks out the code'
    echo &quot;Ignoring database.yml , updating and commiting...&quot;
    svn propset svn:ignore &quot;database.yml&quot; config/
    svn update config/
    svn commit -m 'Ignoring database.yml'
    echo &quot;Finished.&quot;

else
    echo &quot;Unknown Input. Terminating...&quot;
	exit 0
fi</code>
    <created-at type="datetime">2008-11-15T00:03:35Z</created-at>
    <description></description>
    <id type="integer">96</id>
    <language-id type="integer">42</language-id>
    <privated type="boolean">false</privated>
    <title>bash script to create rails and subversion structure</title>
    <updated-at type="datetime">2008-11-15T00:03:35Z</updated-at>
    <user-id type="integer">7</user-id>
  </code>
</codes>
