Mercurial > dotfiles
comparison .shell.d/50.vcs_functions.sh @ 62:f9e826bd1f1b
Add a function to ammend the latest revision in hg. I don't do this often, but when I need it it is handy.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Wed, 11 Mar 2009 10:47:19 -0500 |
parents | 79c2c3932362 |
children | 1b4067cc97ca |
comparison
equal
deleted
inserted
replaced
61:79c2c3932362 | 62:f9e826bd1f1b |
---|---|
44 function hg-svn-rebase-all() { | 44 function hg-svn-rebase-all() { |
45 for b in `hg llog -u 'Augie Fackler <durin42@gmail.com>' --template '{branches}\n' | sort | uniq` | 45 for b in `hg llog -u 'Augie Fackler <durin42@gmail.com>' --template '{branches}\n' | sort | uniq` |
46 do | 46 do |
47 hg co $b && hg svn rebase || return | 47 hg co $b && hg svn rebase || return |
48 done | 48 done |
49 } | |
50 | |
51 function hg-ammend() { | |
52 hg qimport -r . && hg qref && hg qfin qtip | |
49 } | 53 } |
50 | 54 |
51 function hg-svn-mkbranch() { | 55 function hg-svn-mkbranch() { |
52 local upstream | 56 local upstream |
53 upstream=$(hg svn url) | 57 upstream=$(hg svn url) |