Finding files to be added
svn add `svn st | grep '\?' | tr '\?' ' ' | xargs`
TextSnippets > svn >
Post code snippets. Sort by tags, people, people and tags, etc..
? Earlier | 8 items total | Later ? |
svn add `svn st | grep '\?' | tr '\?' ' ' | xargs`
svn log --stop-on-copy | grep -e "--------" | wc -l
find . -name .svn -print0 | xargs -0 rm -rf
#!/usr/local/bin/python """ Subversion pre-commit hook which currently checks that the commit contains a commit message to avoid commiting empty changesets which tortoisesvn seems to have a habbit of committing. Based on http://svn.collab.net/repos/svn/branches/1.2.x/contrib/hook-scripts/commit-block-joke.py and hooks/pre-commit.tmpl Hacked together by Jacques Marneweck$Id$ """ import sys, os, string SVNLOOK='/usr/local/bin/svnlook' def main(repos, txn): log_cmd = '%s log -t "%s" "%s"' % (SVNLOOK, txn, repos) log_msg = os.popen(log_cmd, 'r').readline().rstrip('\n') if len(log_msg) < 10: sys.stderr.write ("Please enter a commit message which details what has changed during this commit.\n") sys.exit(1) else: sys.exit(0) if __name__ == '__main__': if len(sys.argv) < 3: sys.stderr.write("Usage: %s REPOS TXN\n" % (sys.argv[0])) else: main(sys.argv[1], sys.argv[2])
svn add --force *
svn switch --relocate http://textpattern.com/svn/repos/current/textpattern http://svn.textpattern.com/current/textpattern
svn info | grep URL
URL: http://svn.textpattern.com/current/textpattern
cd /usr/local/etc/ svn export --force --username [email protected] --password apassword https://svn.textdrive.com/repos/setup/usr/local/etc/apache2
svn co http://svn.textpattern.com/current/ .
nano textpattern/config.php
svn update
? Earlier | 8 items total | Later ? |