Tech Blog :: Shell shortcut for SVN URL
Shell shortcut for SVN URL
This took me some time to figure out. It's a shell command to extract the URL from an svn info command. Run this (or put it in .bash_profile):
alias svnurl="svn info | egrep '^URL: (.*)' | sed s/URL\:\ //"Then you can do things like svn ls $(svnurl) or svn log $(svnurl) to run commands on the remote repository. I expect this'll save me a bunch of time in the future.
And this is another one I've used for a while, to view changes in a working copy, especially useful when there are externals that output text even when there are no changes:
alias svnnew='svn st | grep -e "^[!M?~ACDR ]"'
Google: TheBuckSt0p
Facebook: BenBuckman
LinkedIn
Github: newleafdigital
@thebuckst0p
Delicious: thebuckst0p
Drupal.org: thebuckst0p
Post new comment
Don't bother putting in spam links. They'll be set to
rel=nofollowand will be removed and reported as spam shortly after submitting.