batch file - SVN diff issue on Windows -
i have written batch script diff between 2 revisions using windows command-line svn. directory name has space (i cursing developer creating directory name space).
svn version: 1.7
os: windows xp
for example, /svnrepo/xyz/project/c# code/files/
the trouble c# code directory name, assuming space causing issue - when tried run diff command, output quite unusual:
svn diff -r633:700 /svnrepo/xyz/project/***c# code***/files/
a /svnrepo/xyz/project/c%23%20code/files/
how correct issue?
i wish output like:
a /svnrepo/xyz/project/c# code/files/ can write output text file.
ps: linux person. , new batch scripting.
there no "issue". that's standard url character encoding (%23
means hex 23
or 0x23
, decimal 35
, ascii code #
, , %20
hex 20
or 0x20
, decimal 32
, ascii code space character). see same thing in address bar of web browswer if try navigate url has characters part of site address.
to log differences file, use command-line redirection:
svn diff -r633:700 /svnrepo/xyz/project/c# code/files/ > diffs.txt
Comments
Post a Comment