zsh/mercurial.zsh @ c924e638ae4b

Move task lists to the Dropbox folder.
author Steve Losh <steve@stevelosh.com>
date Sun, 10 Jan 2010 14:19:16 -0500
parents 95b6f336d3ba
children 0467dba568a7
#!/usr/bin/env zsh

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

function 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
}

function_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!"
}