Never been to TextSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

« Newer Snippets
Older Snippets »
2 total  XML / RSS feed 

svk quickstart

I want to mirror the radiant source for local hacking with the fabulous svk

svk mkdir //mirror
svk mkdir //mirror/radiant
svk mirror http://dev.radiantcms.org/svn/radiant/trunk/radiant  //mirror/radiant/trunk
svk sync //mirror/radiant/trunk
svk cp //mirror/radiant/trunk //local/radiant/branches/jamie
svk co //local/radiant/branches/jamie

# use svk commit/sync like normal svn to your local svk depot
# use svk pull to grab new changes from the base repository
# use svk push to send them


Note:
* Capistrano does not support deploying from svk repositories. You need to create a local svn and then smerge things there first... more info here: http://octopod.info/2006/8/19/managing-multiple-local-mephisto-repos-with-svk

sup: bash script for universal SCM syncing (svn, svk, cvs, darcs, etc.)

I really can never remember if the project I'm in uses svn or cvs or if it's my own local svk mirror, etc. etc. Thus was born 'sup'!

Save and drop into a location that's in your PATH (I use ~/bin, YMMV)

#!/bin/bash
# sup -- a quick bash script to sync w/ various SCM tools
# @author   Jamie Wilkinson 

HERE=$(pwd)

## subversion
if [ -e ".svn" ]; then
        svn up
## cvs
elif [ -e "CVS" ]; then
        cvs up -dP
## darcs
elif [ -e "_darcs" ]; then
        darcs pull --all
## svk
elif [ -n "`grep $HERE ~/.svk/config`" ]; then
    svk up
## git
elif [ -e ".git" ]; then
    git pull
## perforce
#   todo
## arch
#   todo
## bzr
#   todo

fi
« Newer Snippets
Older Snippets »
2 total  XML / RSS feed