-
Notifications
You must be signed in to change notification settings - Fork 50
SVN aka Subversion
To checkout a new project:
ssh sub.domain
cd public_html/
svn checkout svn+ssh://sub.domain.com/var/svn/projectname/trunk localprojectname
cd projectname
To pull the latest stylsheets:
svn up
Move to target dir:
cd public_html/projectname/stylesheets/
Check the status of which files have changed
svn st
eg: ? road-labels-original.mss M views.pgsql M high-zoom-cities.html
Add the one that is new (?) using (where :
svn add road-labels-original.mss
Now let’s push the changed ones back to the server repository with a “message”
svn commit -m "added color"
DEBUG:
find . -name .svn -exec rm -rfv {} \;
svn add stylesheets
svn rm style
Add all the new stuff:
`svn add `svn st | egrep '^\?' | cut -d ' ' -f 8``
Remove all the missing junk:
`svn rm `svn st | egrep '^\!' | cut -d ' ' -f 8``
svn rm --force renders/mid-zoom-world-*pdf
Removing files:
svn rm mid-zoom-world-*.png
svn propedit svn:ignore .
you’re in pico then:
paste in the things your removed
svn rm mid-zoom-world-*.png
close and save.
Also (and more importantly), add the style.xml file to the list of ignored files.
Deleting files on the filesystem and in SVN:
sudo rm -rf tiles/*
sudo rm -rf tilestache/tiles/*
sudo rm -rf ../shp/labels/*
find . -name .svn -exec rm -rfv {} \;