[SvnBook] #118: ch07: external diff helper scripts can't bank on fixed-length argument list
SvnBook
noreply at red-bean.com
Tue Jun 10 13:24:42 CDT 2008
#118: ch07: external diff helper scripts can't bank on fixed-length argument list
----------------------+-----------------------------------------------------
Reporter: cmpilato | Owner: cmpilato
Type: defect | Status: new
Priority: normal | Milestone: 1.5
Component: content | Version: nightly/trunk
Keywords: |
----------------------+-----------------------------------------------------
The sample wrapper scripts diffwrap.sh and diffwrap.bat each pull the
diff-able files from their sixth and seventh arguments. But if you use
'svn diff --diff-cmd -x ARG1 ARG2', the fact that -x causes the formerly
hardcoded "-u" argument to be replaced with "ARG1" "ARG2" means the diff-
able files are now in the seventh and eighth argument slots.
Clearly, to be fully robust, these wrapper scripts need to looking at the
last two arguments regardless of how many arguments appear.
--
Ticket URL: <http://svnbook.red-bean.com/trac/ticket/118>
SvnBook <http://svnbook.red-bean.com/>
More information about the svnbook-dev
mailing list