bash/mercurial @ a8af7beac4c2

Adjust the tasks aliases.
author Steve Losh <steve@stevelosh.com>
date Wed, 20 Jan 2010 00:24:16 -0500
parents bc7e4f80b5ee
children (none)
#!/usr/bin/env bash

alias mq='hg -R $(hg root)/.hg/patches'
alias tmd='hg tmd | mate'

pull_everything() {
    for repo in $( ls -1 ); do
        if [[ -d $repo && -d $repo/.hg ]]; then
            echo "Pulling" $repo
            hg -R $repo pull -u
            echo
        fi
    done
}

bitb() {
    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!"
}