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

co a single file? ci withtout co? was: Subversion web interface with write access?

From: Peter Valdemar Mørch <swp5jhu02_at_sneakemail.com>
Date: 2004-08-18 00:59:44 CEST

Rongsheng Fang rfang-at-coke.umuc.edu |Lists| wrote:
> Does anybody know of any web interfaces which support write access to
> the repository? Or is there anybody out there developing one?

If I wanted to develop one, I'd have to be able to commit files, at the
very least. I've tried with svn to commit a new revision of a file
without a working-copy-directory, but have not succeeded.

I think at least WebSVN uses svnlook to access the repository and so has
no checked-out working-copy.

Is there any way to do the equivalent of :
svn cp -m "new foo" /non/svn/dir/foo.txt $repos/trunk/foo.txt

Or is there a way to check out just a single file within a directory, so
I *do* get the working-copy-directory (.svn and all), but without the
bulk of the files in that directory - only the one file I'm interested
in? I tried:
~> mkdir foo ; svn co $repos/dir/foo.txt foo
svn: Attempted to create entry in non-directory parent

Together this means, that in order to commit a new version of a file for
the "web interface", I'd have to checkout the entire directory
containing the file, then do a local modification, then check-in, then
remove the working-copy directory again. If the directory containing the
single file we'd like to change is huge, that becomes a nasty situation.
(I realize that what I'm trying to do circumvents the conflict detection.)

After locking is there I then intend to wrap that within
svn lock $repos/trunk/foo.txt
svn unlock $repos/trunk/foo.txt
somehow. Will locking also require a working-copy-directory?

I'm suspecting mostly the same answers apply to add/mv/del/cp etc.

Sincerely,

Peter

-- 
Peter Valdemar Mørch
http://www.morch.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Aug 18 01:00:05 2004

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

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