# HG changeset patch # User Jeff Hammel # Date 1283531851 25200 # Node ID dfda4f7d4db4f2c722ca589536924d75ec166912 # Parent 24f933c9d97f433dc761a8ac96fed5925c885b22 add a command to generate those hgrc files i always need diff -r 24f933c9d97f -r dfda4f7d4db4 .bashrc --- 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