Mercurial > dotfiles
changeset 58:20834b97b814
Add function to rebase all local named branches to HEAD of their parent svn branch.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Fri, 20 Feb 2009 16:05:45 -0600 |
parents | 0ba810271408 |
children | 2eb8cbc08070 |
files | .shell.d/50.vcs_functions.sh |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/.shell.d/50.vcs_functions.sh +++ b/.shell.d/50.vcs_functions.sh @@ -25,6 +25,13 @@ function svnurlof() { echo $url } +function hg-svn-rebase-all() { + for b in `hg llog -u 'Augie Fackler <durin42@gmail.com>' --template '{branches}\n' | sort | uniq` + do + hg co $b && hg svn rebase || return + done +} + function hg-svn-mkbranch() { local upstream upstream=$(hg svn url)