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

Re: CVS update: subversion/notes multi-args.txt

From: Kevin Pilch-Bisson <kevin_at_pilch-bisson.net>
Date: 2001-03-24 15:50:18 CET

On Fri, Mar 23, 2001 at 11:29:34PM -0000, kfogel@tigris.org wrote:
>
> Let TL be an apr_array_header_t representing the target list, in the
> order it appeared on the command line. Assume that no "../blah" paths
> are allowed in the targets.
>
> 1. Remove redundancies from the target list: all targets that are
> descendants of some other target are removed.
>
>
> 2. Find the longest common prefix ending with "/" for all the
> targets. Strip that prefix off all targets and save it for
> later.
>
> (Kevin Pilch-Bisson has written code to help with 1 and 2, see
> svn_path.c.)
>
Actually, it is in libsvn_subr/target.c and it usually handles ../blah
dirs, (by sometime next week, when apr_realpath is checked in it always
will). You will be able to give an arbitrary path rep, and get the
absolute path, so 1 and 2 will work for mixed '~/', 'blah', '../blah',
'/blah' paths. Oh, and C:blah, C:\blah, \blah, and all the equivalents
for win32 and OS2.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Pilch-Bisson                    http://www.pilch-bisson.net
     "Historically speaking, the presences of wheels in Unix
     has never precluded their reinvention." - Larry Wall
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  • application/pgp-signature attachment: stored
Received on Sat Oct 21 14:36:26 2006

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

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