You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Files <fi...@poetryunlimited.com> on 2003/11/10 18:48:16 UTC

Editing repository contents

I apologize for posting in both lists in advance, but I'm not sure which one
this applies to.

The repository browser I'm working on allows you to view the contents of the
repository at present.

However, I would like to also allow you to use it as a file management interface.

And to do so w/o a local working copy.

Is this something that is even possible with the current library structure?

Essentially, what I would want to do, is effectively to do an import on a file
that exists in the repository already.

I'm not sure that I can do this without first checking out a file first,
updating it with the new file and then committing the final copy and then
removing the temporary working directory.

Now this seems like a big mess to me.

But when I try to do an import via svn multiple times on the same file, it fails.

Can someone please point me to the library that this behavior is located it in
and I can do a some analysis on how this process works and see if I can get
around it?

Or am I asking for something that's just a "bad idea" <tm>
-- 
Shamim Islam
BA BS



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Editing repository contents

Posted by Ben Collins-Sussman <su...@collab.net>.
On Mon, 2003-11-10 at 12:48, Files wrote:
> I apologize for posting in both lists in advance, but I'm not sure which one
> this applies to.
> 
> The repository browser I'm working on allows you to view the contents of the
> repository at present.
> 
> However, I would like to also allow you to use it as a file management interface.

You need to use the repository access (RA) api, in svn_ra.h.  It's an
abstraction of the svn network protocol.

If you want to change the repository, call RA->open() to get a network
session object, then call RA->get_commit_editor() and drive the editor
vtable, pushing your changes at the server.  

(This is what clkao does in his 'svk' tool, using the perl bindings.)



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org