comparison .shell.d/50.vcs_functions.sh @ 60:87b2ccf6ec44

Improved mq now works anywhere inside the parent hg repo.
author Augie Fackler <durin42@gmail.com>
date Tue, 03 Mar 2009 09:42:36 -0600
parents 20834b97b814
children 79c2c3932362
comparison
equal deleted inserted replaced
59:2eb8cbc08070 60:87b2ccf6ec44
1 ## vcs_functions 1 ## vcs_functions
2 # This file contains a handful of functions that relate to using some version 2 # This file contains a handful of functions that relate to using some version
3 # control tool or other. 3 # control tool or other.
4 4
5 alias mq='hg -R .hg/patches' 5 function mq () {
6 ( wcroot ;
7 hg -R .hg/patches $@
8 )
9 }
6 10
7 # Function to grab the url of an svn wc 11 # Function to grab the url of an svn wc
8 function svnurlof() { 12 function svnurlof() {
9 local url 13 local url
10 url=`svn info $1 2> /dev/null | grep '^URL: ' | sed 's/URL: //'` 14 url=`svn info $1 2> /dev/null | grep '^URL: ' | sed 's/URL: //'`