[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

external merge tool argument order does not match sample in svn-book

From: Steven Trabert <steve.trabert_at_oracle.com>
Date: Wed, 20 Jul 2011 14:41:02 -0600

http://svnbook.red-bean.com/nightly/en/svn-book.html#svn.advanced.externaldifftools.merge,
Example 7.6 "mergewrap.py" shows the argument order as
> # Get the paths provided by Subversion.
> BASE = sys.argv[1]
> MINE = sys.argv[2]
> THEIRS = sys.argv[3]
> MERGED = sys.argv[4]
> WCPATH = sys.argv[5]
Example 7.7. mergewrap.bat shows the same order as Example 7.6.

However, the routine svn_cl__merge_file_externally in svn/util.c,
1.6.17, uses a different order ( the mine and their arguments are
switched ):

> arguments[0] = merge_tool;
> arguments[1] = base_path;
> arguments[2] = their_path;
> arguments[3] = my_path;
> arguments[4] = merged_path;
> arguments[5] = wc_path;
> arguments[6] = NULL;

the current version, r1140729, shows the same order in util.c as 1.6.17.

** <http://svn.apache.org/viewvc?view=revision&revision=1140729>
Received on 2011-07-20 23:09:46 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.