Subversion

August 01, 2012

SVN update without a particular directory

$ rm -rf unwanted-directory
$ svn checkout url/to/repo/unwanted-directory unwanted-directory --depth empty
$ cd root/of/my/tree
$ svn update

Posted by pj at 08:10 AM | Comments (0)

May 18, 2011

Remove from version control but keep the file

svn delete --keep-local filename

Posted by pj at 03:48 PM | Comments (0)

January 18, 2010

Using SVN switch

svn switch

Posted by pj at 05:07 PM | Comments (0)

July 13, 2009

Mirroring repositories with svnsync

Mirroring repositories read-only

Posted by pj at 11:06 AM | Comments (0)

June 26, 2009

Syncing code between two repositories

cd /opt/coolstack/apache2/htdocs; svn export --force svn://172.20.52.51:8081/svn-repository/waf .; svn commit -m=""; chown -R webservd *

Posted by pj at 12:03 PM | Comments (0)

November 14, 2008

Unversion an SVN working copy

unversion a working copy | TortoiseSVN

Posted by pj at 10:53 AM | Comments (0)

April 15, 2008

Python script for getting changed files

The following Python script gets you a list of files changed between two subversion revisions:

import sys
import os
import re

lines = []

for counter in range(int(sys.argv[1]) - 1, int(sys.argv[2]) + 1):
    lines.append(os.popen('/usr/local/bin/svn log -vv -r  ' + str(counter)));

tally = {}

for results in lines:
    for line in results:
        reg = re.compile("svn-repository")
        if reg.search(line):
            tally[line] = 1

final = tally.keys()

final.sort()

print " " + " ".join(final)

Posted by pj at 05:06 PM | Comments (0)

December 15, 2007

PHP SVN bindings

PECL :: Package :: svn

FlexySvn

Posted by pj at 10:20 AM | Comments (0)

How can I make the live site automatically update after every commit?

subversion: Subversion FAQ

How can I make the live site automatically update after every commit?

Posted by pj at 10:10 AM | Comments (0)

December 14, 2007

pysvn Programmer's Guide

pysvn: pysvn Programmer's Guide

Posted by pj at 09:03 PM | Comments (0)

July 23, 2007

Subversion pre-commit script in Python

A Subversion Pre-Commit Hook

Posted by pj at 04:35 PM | Comments (0)

August 07, 2006

A brief history of some subversion transactions

svn import /cygdrive/e/svn-projects/finance_admin  \

svn://172.16.0.82/storage/svn-repository/finance_admin -m \

"Initial import fwl_finance_admin"

mv finance_admin finance_admin.old

svn checkout svn://172.16.0.82/storage/svn-repository/finance_admin \
finance_admin

Posted by pj at 04:11 PM | Comments (0)