Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Useful scripts when working with source control.
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
keywords.txt
svnex.sh
svnig.sh
svnkey.sh
svnst.sh
svnup.sh
svnurl.sh
trac.sh

README.md

SCM Scripts

Useful scripts when working with source control (mostly svn, but also git) from the shell.

Scripts

  • svnurl.sh -- Extracts the repository URL from a svn or git-svn working path.
  • trac.sh -- Opens a working copy in its Trac repository browser. Set the trac hostname in .trac_host at the repo root, or globally with $TRAC_HOST.
  • svnex.sh, svnig.sh, svnkey.sh -- Wrappers around the verbose syntax for editing svn:externals, svn:ignore, and svn:keywords respectively.
  • svnup.sh -- Calls svn up on all direct children of a directory which are svn working copies.
  • svnst.sh -- Prints svn status without any of the noise from externals.

Env Variables

  • $SCM_SCRIPTS_BASE -- Directory which holds these scripts and their resources. Set this when you want to alias the scripts to some other path.
  • $TRAC_HOST -- Defualt hostname used by trac.sh to open a working copy in your browser.
  • $SVN_KEYWORD_FILE -- File containing default keywords to set with svnkey.sh. Defaults to $SCM_SCRIPTS_BASE/keywords.txt.
  • $SVN_UP_PROJECTS -- Default directory to use for svnup.sh when none is specified.

Feedback

Open an issue here, or email me at dsc@less.ly.

Something went wrong with that request. Please try again.