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

Re: Minor annoyance in svn add

From: Noel Yap <yap_noel_at_yahoo.com>
Date: 2002-10-25 20:21:28 CEST

--- Philip Martin <philip@codematters.co.uk> wrote:
> Rafael Garcia-Suarez
> <raphel.garcia-suarez@hexaflux.com> writes:
>
> > What do you mean, "number of components" ?
> ./././///./foo is still longer that foo/bar.
>
> Use svn_path_decompose and don't count
> SVN_EMPTY_PATH components.

Whenever I've needed to do this in the past, I used
sort to "alphabetize" the list. I think it should
work since "foo" comes before "foo/bar" in such a
sort. Assuming svn_path_decompose gets rid of "./"
and "//", using it before sorting should do what's
needed.

Noel

__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Oct 25 20:22:26 2002

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.