bc7e4f80b5ee

Add the review extension and clean up the bitb alias.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Thu, 22 Oct 2009 19:23:13 -0400
parents 56223118cfe5
children 9a7470f41c21
branches/tags (none)
files .hgrc bash/mercurial

Changes

--- a/.hgrc	Wed Oct 14 17:34:12 2009 -0400
+++ b/.hgrc	Thu Oct 22 19:23:13 2009 -0400
@@ -22,6 +22,7 @@
 hg-git = ~/lib/hg/hg-git-abderrahim
 collapse = ~/lib/hg/hgcollapse/hgext/collapse.py
 diffstat = ~/lib/hg/hgdiffstat/hgext/diffstat.py
+review = ~/src/hg-review/review
 
 [alias]
 rewrite = histedit
--- a/bash/mercurial	Wed Oct 14 17:34:12 2009 -0400
+++ b/bash/mercurial	Thu Oct 22 19:23:13 2009 -0400
@@ -14,7 +14,7 @@
 }
 
 bitb() {
-    local P="$(grep 'bitbucket.org' `hg root`/.hg/hgrc 2>/dev/null | head -1)"
+    local P="$(hg paths 2>/dev/null | grep 'bitbucket.org' | head -1)"
     local URL="$(echo $P | sed -e's|.*\(bitbucket.org.*\)|http://\1|')"
     [[ -n $URL ]] && open $URL || echo "No BitBucket path found!"
 }