@NotNull public static String parseRelativeDirectory(@NotNull String s) throws SvnBindException {
  s=s.trim();
  int length=s.length();
  String result;
  if (isUnescapedQuote(s,length - 1)) {
    int index=lastUnescapedIndexOf(s,length - 1,'"');
    assertIndex(s,index,"Could not find start quote");
    result=s.substring(index + 1,length - 1);
  }
 else {
    int index=lastUnescapedIndexOf(s,length,' ');
    assertIndex(s,index,"Could not find separating space");
    result=s.substring(index + 1);
  }
  return unescape(result);
}

@ NotNull public static String parseRelativeDirectory ( @ NotNull String s ) throws SvnBindException { s = s . trim ( ) ; int length = s . length ( ) ; String result ; if ( isUnescapedQuote ( s , length - 1 ) ) { int index = lastUnescapedIndexOf ( s , length - 1 , '"' ) ; assertIndex ( s , index , "Could not find start quote" ) ; result = s . substring ( index + 1 , length - 1 ) ; } else { int index = lastUnescapedIndexOf ( s , length , ' ' ) ; assertIndex ( s , index , "Could not find separating space" ) ; result = s . substring ( index + 1 ) ; } return unescape ( result ) ; }
parses relative directory from externals definition ( in format starting from svn 1 . 5 ) . restrictions for relative directory : - is at the end of externals definition separated from other parameters by ' ' char - could be quoted with ' " ' char - certain chars could be escaped with ' \ ' char
