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

Re: bug in svn_wc_get_pristine_copy_path

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2003-02-02 20:26:41 CET

"SteveKing" <steveking@gmx.ch> writes:

> when I call svn_wc_get_pristine_copy_path with a filepath of
> "f:\test\foo.txt"
> the returned path for the pristine copy is
> ".svn/text-base/F:\Test\foo.txt.svn-base"
>
> but that's not a valid path and so useless for a client who
> uses that function for diffs. (or at least wants to use it
> for that)

It's a valid path for a file called "f:\test\foo.txt" in the current
directory. I take it that's not what you wanted? The Subversion API
uses "/" as a separator, so you probably want

svn_wc_get_pristine_copy_path(svn_path_internal_style("f:\test\foo.txt"))

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Feb 2 20:27:27 2003

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.