SVN: Support for paths that are not branches or trunk
Also fallback to displaying the repo's root name in the case where the repo path is none of tags/branches/trunk
This commit is contained in:
parent
e9279856c4
commit
5425a5eb56
@ -891,8 +891,12 @@ _lp_svn_branch()
|
|||||||
url="${url:${#root}}"
|
url="${url:${#root}}"
|
||||||
if [[ "$url" == */trunk* ]] ; then
|
if [[ "$url" == */trunk* ]] ; then
|
||||||
echo -n trunk
|
echo -n trunk
|
||||||
else
|
elif [[ "$url" == */branches* ]] ; then
|
||||||
_lp_escape "$(expr "$url" : '.*/branches/\([^/]*\)' || expr "$url" : '/\([^/]*\)' || basename "$root")"
|
_lp_escape "$(expr "$url" : '.*/branches/\([^/]*\)' || expr "$url" : '/\([^/]*\)' || basename "$root")"
|
||||||
|
elif [[ "$url" == */tags* ]] ; then
|
||||||
|
_lp_escape "$(expr "$url" : '.*/tags/\([^/]*\)' || expr "$url" : '/\([^/]*\)' || basename "$root")"
|
||||||
|
else
|
||||||
|
_lp_escape "$(basename "$root")"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user