changeset 89:dfda4f7d4db4

add a command to generate those hgrc files i always need
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 03 Sep 2010 09:37:31 -0700
parents 24f933c9d97f
children 6d09c2a8e5e9
files .bashrc
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/.bashrc	Fri Aug 27 09:03:37 2010 -0700
+++ b/.bashrc	Fri Sep 03 09:37:31 2010 -0700
@@ -277,6 +277,13 @@
 done
 }
 
+hgrc() {
+ROOT="${1}"
+echo "[paths]"
+echo "default = ${ROOT}"
+echo "default-push = ssh://${ROOT#http*://}"
+}
+
 ### include overrides for commands
 source ~/.bash_overrides