Mercurial > dotfiles
comparison .shell.d/50.vcs_functions.sh @ 129:1286c27cf0c0
Need to use paths default instead of the outdated svn url now.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Thu, 23 Jul 2009 10:23:52 -0500 |
parents | 5f00625aa1ed |
children | 5b0b8ad2cb2c |
comparison
equal
deleted
inserted
replaced
128:d59b0340a85a | 129:1286c27cf0c0 |
---|---|
76 hg qimport -r . && hg qref && hg qfin qtip | 76 hg qimport -r . && hg qref && hg qfin qtip |
77 } | 77 } |
78 | 78 |
79 function hg-svn-mkbranch() { | 79 function hg-svn-mkbranch() { |
80 local upstream | 80 local upstream |
81 upstream=$(hg svn url) | 81 upstream=$(hg paths default | sed 's%/*$%%') |
82 local branchname | 82 local branchname |
83 if [ "x$1" = "x" ] ; then | 83 if [ "x$1" = "x" ] ; then |
84 echo 'Must provide new branch name.' | 84 echo 'Must provide new branch name.' |
85 return 1 | 85 return 1 |
86 fi | 86 fi |