You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by bruce <be...@earthlink.net> on 2004/08/23 19:43:02 UTC

basic/new subversion questions...

hi...

new to subversion, and i have a few basic questions.

i'm creating an app and i need to have users add/modify files in a
consistent manner. i'm reviewing CVS/Subversion and other source apps.

i would like the ability to intergrate a subset of the repository
functionality into the web app that i'm creating. this would allow the user
to easily add/modify/etc the files within the underlying repository, without
having to use a separate web app/front end.

i'm looking to integrate a repository with a web app running
php/apache/mysql/linux. does subversion easily allow this kind of
integration to occur within a php webapp? also, does subversion use a db as
the underlying repository, or is it more or less based on rcs...?

perusing through the faq/docs hasn't given me an answer for these questions
(yet!).

also, in comparison to cvs, how easy/fast is it to get a working subversion
system up/running...

thanks for any thoughts/opinions/etc...

-bruce


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

phpweb app to interface with subversion/svnserve

Posted by bruce <be...@earthlink.net>.
martin (and others)...

you stated that the perl bindings/app that you created interface with the
subversion server via a webapp. is it possible that i could take a look at
what you've created. it might be possible to either interface portions of
what you have with what i'm doing.. (a kind of php/perl hybrid..) or it
might be possible for me to replicate/port some of what you have to php...

the websvn app only appears to allow you to look at the repository..

thanks for any thoughts/comments/pointers/etc..

-bruce



-----Original Message-----
From: Martin Tomes [mailto:lists@tomes.org]
Sent: Tuesday, August 24, 2004 12:54 AM
To: bedouglas@earthlink.net
Cc: users@subversion.tigris.org
Subject: Re: basic/new subversion questions...


bruce wrote:
> i'm looking to integrate a repository with a web app running
> php/apache/mysql/linux. does subversion easily allow this kind of
> integration to occur within a php webapp? also, does subversion use a db
as
> the underlying repository, or is it more or less based on rcs...?

We have done something like this by using the Perl bindings and it makes for
a very slick solution.
  Unfortunately there aren't any php bindings that I know of.

--
Martin Tomes
echo 'martin at tomes x org x uk'\
  | sed -e 's/ x /\./g' -e 's/ at /@/'

The Subversion Wiki is at http://www.subversionary.org/

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


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

Re: basic/new subversion questions...

Posted by Martin Tomes <li...@tomes.org>.
bruce wrote:
> i'm looking to integrate a repository with a web app running
> php/apache/mysql/linux. does subversion easily allow this kind of
> integration to occur within a php webapp? also, does subversion use a db as
> the underlying repository, or is it more or less based on rcs...?

We have done something like this by using the Perl bindings and it makes for a very slick solution. 
  Unfortunately there aren't any php bindings that I know of.

-- 
Martin Tomes
echo 'martin at tomes x org x uk'\
  | sed -e 's/ x /\./g' -e 's/ at /@/'

The Subversion Wiki is at http://www.subversionary.org/

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

Re: import svn question/problem

Posted by David Waite <dw...@gmail.com>.
yes, a bit non-intuitive, but identical to the CVS behavior - import
puts the files into the repository, but does not convert your
directory into a working copy. You must now check out what you checked
in, and you'll be where you expect.

-David Waite

On Mon, 23 Aug 2004 21:56:29 -0700, bruce <be...@earthlink.net> wrote:
> hi...
> 
> new to subversion.. and not yet impressed!!!
> 
> i'm trying to install/create/import a test dir into subversion...
> 
> i did the following...
> 
> svn mkdir file:///svnroot/svn/schools -m 'university repository.'
> 
> svn mkdir file:///svnroot/svn/schools_snapshots -m 'snapshots for university
> repository.'
> 
> svn mkdir file:///svnroot/svn/schools_branches -m 'branches for university
> repository.'
> 
> i then finally did...
> svn import . file:///svnroot/svn/schools --message 'initial project'
> 
> after which the app appeared to add the test file...
> 
> however, when i attempt to run 'svn 'anything'...
> 
> i get the error msg..
> 
> "svn: '.' is not a working copy"....
> 
> i have no idea what to do next, or how to resolve this issue. i can't even
> figure out how to get to any log files to even see if there is information
> somewhere which might help to solve this problem...
> 
> this is d%^&()# frustrating!!!
> 
> is there someway to clear the underlying repository/data?? do i have to
> somehow start over..??
> 
> the subversion docs have as yet not shed any light on this issue...
> 
> thanks for any insight/assistance/help/etc...
> 
> -bruce
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
> 
>

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

Re: accessing svnserve...

Posted by Max Bowsher <ma...@ukf.net>.
bruce wrote:
> karl/others...
>
> thanks for all the responses as i jump into subversion!!
>
> the docs/suggestions have been helpful, but i have a few more questions.
>
> i have successfully (i hope) setup a svnserve process, and created an
> initial repository on a linux platform.
>
> i did the following commands.
>
> svnserve -d
> svnadmin create /svnroot/svn
> svnimport /tmp file:///svnroot/svn -m 'blah'

"svnimport" ?

> i was also able to perform a checkout of the test information to another
> test working dir.
>
> i was able to use the following command:
> svn list svn://192.168.1.52/svnroot/svn
>
> which gave me the following structure:
> [test@lserver2 zz]$ svn list svn://192.168.1.52/svnroot/svn
> branches/
> tags/
> trunk/
>
> which is the structure that i created.
>
> my questions are:
>
> 1) when i access the server from another linux server, what do i need (in
> terms of rpms) to have the 'svn' app on the client server?

Depends on distro/packager.

> 2) what do i need to do (command) to be able to 'see/access' the 
> underlying
> projects. within the test repository, i imported/created a 'app' proj. how
> can i see that the 'app' project is in the repository?

Erm... "svn"?

> 3) assuming i get everything working using svnserve, what kind of changes
> would i need to do to the repository to get it working using apache? i'm
> trying to work my way up the learning curve!!!

To the repository itself? None. For info about configuring apache, see the 
svnbook. (www.svnbook.org).

> 4) does subversion allow for any way/mechanism to attach a 
> 'status/property'
> to a given file/version of a file? (also, does subversion automatically
> create a new version of the file with every checkout/checkin process??)

Reading through the svnbook will give you a good overview of subversion's 
processes.

> my basic needs are to allow a number of users to access files, and make
> changes to the files over time. once a file gets to a certain state, i'd
> like to be able to allow a user to tag the file/version as being 'good'...
> with the ability to be able to somehow extract/download all files that are
> tagged 'good' on a certain date.

Would creating your files in a dev branch, and later 'mv'-ing them to a 
'good' branch work for you?

Max.


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

accessing svnserve...

Posted by bruce <be...@earthlink.net>.
karl/others...

thanks for all the responses as i jump into subversion!!

the docs/suggestions have been helpful, but i have a few more questions.

i have successfully (i hope) setup a svnserve process, and created an
initial repository on a linux platform.

i did the following commands.

svnserve -d
svnadmin create /svnroot/svn
svnimport /tmp file:///svnroot/svn -m 'blah'

i was also able to perform a checkout of the test information to another
test working dir.

i was able to use the following command:
svn list svn://192.168.1.52/svnroot/svn

which gave me the following structure:
[test@lserver2 zz]$ svn list svn://192.168.1.52/svnroot/svn
branches/
tags/
trunk/

which is the structure that i created.

my questions are:

1) when i access the server from another linux server, what do i need (in
terms of rpms) to have the 'svn' app on the client server?

2) what do i need to do (command) to be able to 'see/access' the underlying
projects. within the test repository, i imported/created a 'app' proj. how
can i see that the 'app' project is in the repository?

3) assuming i get everything working using svnserve, what kind of changes
would i need to do to the repository to get it working using apache? i'm
trying to work my way up the learning curve!!!

4) does subversion allow for any way/mechanism to attach a 'status/property'
to a given file/version of a file? (also, does subversion automatically
create a new version of the file with every checkout/checkin process??)

my basic needs are to allow a number of users to access files, and make
changes to the files over time. once a file gets to a certain state, i'd
like to be able to allow a user to tag the file/version as being 'good'...
with the ability to be able to somehow extract/download all files that are
tagged 'good' on a certain date.

thanks for any help/assistance/pointers, etc...

-bruce



-----Original Message-----
From: kfogel@newton.ch.collab.net [mailto:kfogel@newton.ch.collab.net]On
Behalf Of kfogel@collab.net
Sent: Tuesday, August 24, 2004 6:14 AM
To: bedouglas@earthlink.net
Cc: users@subversion.tigris.org
Subject: Re: import svn question/problem


"bruce" <be...@earthlink.net> writes:
> the subversion docs have as yet not shed any light on this issue...

This section

   http://svnbook.red-bean.com/svnbook/book.html#svn-ch-1-sect-7

does say you have to check out a working copy after importing, but in
general the docs could be clearer about this.  I talked to Ben
Collins-Sussman, one of the book authors, and he's planning to improve
it.

-Karl


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


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

Re: import svn question/problem

Posted by kf...@collab.net.
"bruce" <be...@earthlink.net> writes:
> the subversion docs have as yet not shed any light on this issue...

This section

   http://svnbook.red-bean.com/svnbook/book.html#svn-ch-1-sect-7

does say you have to check out a working copy after importing, but in
general the docs could be clearer about this.  I talked to Ben
Collins-Sussman, one of the book authors, and he's planning to improve
it.

-Karl


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

import svn question/problem

Posted by bruce <be...@earthlink.net>.
hi...

new to subversion.. and not yet impressed!!!

i'm trying to install/create/import a test dir into subversion...

i did the following...

svn mkdir file:///svnroot/svn/schools -m 'university repository.'

svn mkdir file:///svnroot/svn/schools_snapshots -m 'snapshots for university
repository.'

svn mkdir file:///svnroot/svn/schools_branches -m 'branches for university
repository.'


i then finally did...
svn import . file:///svnroot/svn/schools --message 'initial project'

after which the app appeared to add the test file...

however, when i attempt to run 'svn 'anything'...

i get the error msg..

"svn: '.' is not a working copy"....

i have no idea what to do next, or how to resolve this issue. i can't even
figure out how to get to any log files to even see if there is information
somewhere which might help to solve this problem...

this is d%^&()# frustrating!!!

is there someway to clear the underlying repository/data?? do i have to
somehow start over..??

the subversion docs have as yet not shed any light on this issue...

thanks for any insight/assistance/help/etc...

-bruce


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