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

Re: svn client api comments

From: Barry Scott <barry_at_barrys-emacs.org>
Date: 2005-03-10 00:43:45 CET

And as you dig deeper you will find a lot more problems for your gui.

propget/proplist only works for 1 item or recursive, but gui needs
props for all files in one dir
propget/proplist performance is terrible in the one file at a time mode
(esp windows)
svn_client_ls cannot return info on a directory. It always lists the
contents of a directory.
cat contacts the server when you ask for the BASE revision of a file.
no way to find the root of a repository - which means that info from
changed paths
is hard to use as its repo root relative.

svn_client_status is very slow before 1.1.3 - its good in 1.1.3.

Barry

On Mar 9, 2005, at 21:20, Martin Hauner wrote:

> Hi,
>
> i have a few comments about the svn client api. I'm looking on it from
> the point of a svn (gui) client which likes to run some commands on
> multiple files in one step and not on each single file.
>
> svn_client_revert: takes multiple files.
> svn_client_delete: takes multiple files.
> svn_client_add(2): takes only a single input file.
>
> Is there any reason why svn_client_add does take a const char* and
> not a const apr_array_header_t* like revert and delete?
>
> subcommanders c++ wrapper for add takes a list as input and calls
> svn_client_add for each file. That's an easy workaround. But I think
> the svn api would be a bit cleaner if add took a list too.
>
>
> svn_copy: takes a single input file
> svn_move(2): takes a single input file
>
> It would be nice if those two took a list of files to copy/move as
> input.
> If i move or copy source files in a working copy i typically want to
> move
> a header and its source file together.
>
> For the working copy case i can do the same as for add above, but in
> case
> of copying or moving directly in the repository it wouldn't be a good
> idea.
> Each single repository move or copy would request its own commit
> message...
> and not just one message for the move/copy of all (selected) files.
>
> what do you think?
>
> --
> Martin
>
> Subcommander, http://subcommander.tigris.org
> a x-platform Win32/Unix svn gui (qt) client & a text diff/merge tool.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Mar 10 00:45:11 2005

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.