changeset 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 2eb8cbc08070
children 79c2c3932362
files .shell.d/50.vcs_functions.sh
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/.shell.d/50.vcs_functions.sh
+++ b/.shell.d/50.vcs_functions.sh
@@ -2,7 +2,11 @@
 # This file contains a handful of functions that relate to using some version
 # control tool or other.
 
-alias mq='hg -R .hg/patches'
+function mq () {
+    ( wcroot ;
+       hg -R .hg/patches $@
+     )
+}
 
 # Function to grab the url of an svn wc
 function svnurlof() {