This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# get_src_url([url]) | |
get_src_url() | |
{ | |
local url=$1 | |
if [ "$url" == "" ]; then | |
local merged_path=`svn propget svn:mergeinfo | head -n 1 | cut -d':' -f1` | |
local root=`svn info | sed -n '/^Repository Root: / { s/Repository Root: //g; p; }'` |