You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by ol...@interaccess.com on 2003/12/10 16:43:04 UTC

Some basic svn questions.

Being a newbie I have some badic questions about svn.

Before I ask them, I notice you have a FAQ, but that FAQ is
more focused on the project then on how SVN is used. It might
be a good idea to make a FAQ for SVN users. If anyone does, then
I believe these questions belong in there,

1) Is there an equivalent to CVSROOT to specify the repository without
    typing it in on each commandline.
2) Is there an equivalent of .cvsignore?
3) Sometimes I have questions about how to do something in a project.
    I create a small subdirectory, and make a test case for the 
    feature in there. Is there a way of not having that subdirectory 
   checked in?
4) Sometimes I wind up in a circumstance where I do not have access
    to the repository. For example I might need to look stuff up to 
    get something working. So I go to the nearest university library
    and work off the laptop there. Is there a way to copy the 
   repository and sync the two repositories at appropriate times?
--------------------------

Now for a couple of whigns.

1) Some times I download a project and discover that it is a cvs
     project instead of an svn project. I don't mind projects which 
     are  derivetive, but I want them to work with svn.
2) Some projects I look at take you to a place where they have a
     list of files. Why can't tarballs be provided.
Thanks



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

svk-- any users? was Re: Some basic svn questions.

Posted by Ryan Hunt <rh...@hp.com>.
On Dec 11, 2003, at 6:25 AM, mark benedetto king wrote:
> On Thu, Dec 11, 2003 at 08:18:31AM +0000, olczyk@interaccess.com wrote:
>> Hmm. is svk something that simply takes two repositories based
>> on a common repository and then merges the changesets?
>> Or is it a complete replacement for svn? Meaning that you must use svk
>> commands instead of svn commands?
>
> One way to think of things is that svk helps you treat a repository
> like a working copy: you can commit changes from one repository into
> another, rather than from one working copy into a repository.
>
> You must, of course, use svk commands in order to do that.  When
> operating on any particular repository, the normal svn commands will
> still work.
>
> If you want to learn more, please see http://svk.elixus.org/
>

I have seen this mentioned a couple of times, though the documentation 
is scarce on the above URL. Has anyone actually used svk?  If so good 
or bad experiences?

-Ryan


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

Re: Some basic svn questions.

Posted by mark benedetto king <mb...@lowlatency.com>.
On Thu, Dec 11, 2003 at 08:18:31AM +0000, olczyk@interaccess.com wrote:
> Hmm. is svk something that simply takes two repositories based
> on a common repository and then merges the changesets?
> Or is it a complete replacement for svn? Meaning that you must use svk
> commands instead of svn commands?

One way to think of things is that svk helps you treat a repository
like a working copy: you can commit changes from one repository into
another, rather than from one working copy into a repository.

You must, of course, use svk commands in order to do that.  When
operating on any particular repository, the normal svn commands will
still work.

If you want to learn more, please see http://svk.elixus.org/

--ben


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

Re: Some basic svn questions.

Posted by ol...@interaccess.com.
On Wed, 10 Dec 2003 12:28:25 -0500, mark benedetto king
<mb...@lowlatency.com> wrote:

>> 4) Sometimes I wind up in a circumstance where I do not have access
>>     to the repository. For example I might need to look stuff up to 
>>     get something working. So I go to the nearest university library
>>     and work off the laptop there. Is there a way to copy the 
>>    repository and sync the two repositories at appropriate times?
>
>You might want to investigate "svk", which is linked to from 
>http://svn.collab.net/repos/svn/trunk/www/project_links.html
>(the link hasn't made it to the official website yet).
Hmm. is svk something that simply takes two repositories based
on a common repository and then merges the changesets?
Or is it a complete replacement for svn? Meaning that you must use svk
commands instead of svn commands?

If so that is esentailly creating a totally new scm based on svn.
I don't think that's a good idea.
( What tools are available. If the repository contains some extra
   information compared to svn, then what tools will convert other
   scm's repositories to svk. There are probably no GUI's that handle
   it. ) 







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

Re: Some basic svn questions.

Posted by ol...@interaccess.com.
On Wed, 10 Dec 2003 14:17:04 -0600, Ben Collins-Sussman
<su...@collab.net> wrote:

>
>> I download and install TortioseSVN. When I try using
>> it all I see is CVS stuff no SVN stuff. ( I asked the ToritoiseSVN
>> maillist but for some reason my email has not yer been accepted. )
>> 
>
>Huh?  Are you running TortoiseCVS in additon to TortoiseSVN?  Are they
>conflicting or something?  I've never heard of such thing.
No I haven't touched TortoiseCVS. It almost seems like the latest
version of TortoiseSVN is mixed up with Tortoise CVS.

It might be an installation problem though.
I sent a message to the Tortoise maling list and haven't seen it
actually get posted yet.


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

Re: Some basic svn questions.

Posted by Mike Mason <mg...@thoughtworks.net>.
Ben Collins-Sussman wrote:

> Huh? Are you running TortoiseCVS in additon to TortoiseSVN? Are they
>
>conflicting or something?  I've never heard of such thing.
>  
>

I've got them both installed and it Just Works(tm).

Mike.


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

Re: Some basic svn questions.

Posted by Ben Collins-Sussman <su...@collab.net>.
On Wed, 2003-12-10 at 14:05, olczyk@interaccess.com wrote:

> I thought that was part of what I was doing. Let me give two
> examples. I hear rumors of a ViewSVN or ViewCVS  with
> svn faetures. The svn web page external links point to a 
> ViewCVS, but when I download it and grep the files for
> Subversion and svn, I find nothing.
> 

Just checkout the latest CVS version of ViewCVS.  It has support for
svn.  The release tarballs don't have the feature.


> I download and install TortioseSVN. When I try using
> it all I see is CVS stuff no SVN stuff. ( I asked the ToritoiseSVN
> maillist but for some reason my email has not yer been accepted. )
> 

Huh?  Are you running TortoiseCVS in additon to TortoiseSVN?  Are they
conflicting or something?  I've never heard of such thing.



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

Re: Some basic svn questions.

Posted by ol...@interaccess.com.
On Wed, 10 Dec 2003 12:28:25 -0500, mark benedetto king
<mb...@lowlatency.com> wrote:

>You might want to investigate "svk", which is linked to from 
>http://svn.collab.net/repos/svn/trunk/www/project_links.html
>(the link hasn't made it to the official website yet).
>
Thanks.
I'll check it out.

>--ben
>
>> --------------------------
>> 
>> Now for a couple of whigns.
>> 
>> 1) Some times I download a project and discover that it is a cvs
>>      project instead of an svn project. I don't mind projects which 
>>      are  derivetive, but I want them to work with svn.
>
>Lobby for change.
>
I thought that was part of what I was doing. Let me give two
examples. I hear rumors of a ViewSVN or ViewCVS  with
svn faetures. The svn web page external links point to a 
ViewCVS, but when I download it and grep the files for
Subversion and svn, I find nothing.

I download and install TortioseSVN. When I try using
it all I see is CVS stuff no SVN stuff. ( I asked the ToritoiseSVN
maillist but for some reason my email has not yer been accepted. )

>> 2) Some projects I look at take you to a place where they have a
>>      list of files. Why can't tarballs be provided.
>
>I'm not sure how svn can help you with that.
>
svn can't but since many are tigris projects, I would think the
developers could. An example of what I am talking about about
is the cvs2svn project. ( Sorry I think you misunderstood. When
I said project, I meant a project that was a tool for SVN. )


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

Re: Some basic svn questions.

Posted by mark benedetto king <mb...@lowlatency.com>.
On Wed, Dec 10, 2003 at 04:43:04PM +0000, olczyk@interaccess.com wrote:
> Being a newbie I have some badic questions about svn.
> 
> Before I ask them, I notice you have a FAQ, but that FAQ is
> more focused on the project then on how SVN is used. It might
> be a good idea to make a FAQ for SVN users. If anyone does, then
> I believe these questions belong in there,
> 
> 1) Is there an equivalent to CVSROOT to specify the repository without
>     typing it in on each commandline.

Sure.  

$ export SVNROOT=http://svn.collab.net/repos/svn/trunk
$ svn ls $SVNROOT

> 2) Is there an equivalent of .cvsignore?

The .svnignore file support was dropped in favor of svn:ignore properties.
This is covered in the book.

> 3) Sometimes I have questions about how to do something in a project.
>     I create a small subdirectory, and make a test case for the 
>     feature in there. Is there a way of not having that subdirectory 
>    checked in?

Don't add it.

> 4) Sometimes I wind up in a circumstance where I do not have access
>     to the repository. For example I might need to look stuff up to 
>     get something working. So I go to the nearest university library
>     and work off the laptop there. Is there a way to copy the 
>    repository and sync the two repositories at appropriate times?

You might want to investigate "svk", which is linked to from 
http://svn.collab.net/repos/svn/trunk/www/project_links.html
(the link hasn't made it to the official website yet).

--ben

> --------------------------
> 
> Now for a couple of whigns.
> 
> 1) Some times I download a project and discover that it is a cvs
>      project instead of an svn project. I don't mind projects which 
>      are  derivetive, but I want them to work with svn.

Lobby for change.

> 2) Some projects I look at take you to a place where they have a
>      list of files. Why can't tarballs be provided.

I'm not sure how svn can help you with that.

--ben


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

Re: Some basic svn questions.

Posted by Seth Falcon <sf...@fhcrc.org>.
On Wed, Dec 10, 2003 at 08:05:24PM +0000, olczyk@interaccess.com wrote:
> I want to create a svn project holding the contents of proj.
> I tried to do:
> svn import svn:/svn 
> from inside the k:/proj/ directory.

Try: svn import svn:/svn/proj
Also see: svn import --help.

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

Re: Some basic svn questions.

Posted by ol...@interaccess.com.
I forgot the fifth ( and most important question )
how do I create a project so that it checks out stuff in the specified
directory.

Let me clarify with an example ( some names changed to protect the
innocent):
I have put my repository on the machine server in the directory /svn.

Onthe client machine I have a project sitting on the K: drive in the
directory proj. I also have other source code directories with code,
libs, scripts. I also have a folder named mp3. I also have a directory
named project_guttenburg. I also have a directory called lyrics.
Understand that this is just a sample, and in reality my directories
are much bigger and more complex, but this does for the moment.
So my directory listing is something like this:

K:/proj/   K:/libs/ K:/scripts/ K:/mp3/ K:/project_guttenburg/
K:/lyrics/ boost.zip stlport_build.log

I want to create a svn project holding the contents of proj.
I tried to do:
svn import svn:/svn 
from inside the k:/proj/ directory.

Move K:/proj/ to K:/proj.old/
Now I do:
svn co svn:/svn

The checked out version creates a directory
k:/svn which contains the files contained in k:/proj/
but a proj direectory is not created. Here is the
point. I do not want a svn directory created, but
I do want a proj directory created. The second
would be possible if I imported from k:/ but I
don't know a way of only importing the proj directory.

Suggestions?





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

Re: Some basic svn questions.

Posted by Ben Collins-Sussman <su...@collab.net>.
On Wed, 2003-12-10 at 14:17, olczyk@interaccess.com wrote:

> The point is that I may have some of these directories at the point I
> decide to import a project. is there a way of importing the project
> without importing these directories?

No.


> Also from what I understand of arch it does not have a "central"
> respository, which is something I want.

You say you want a centralized system...

>  My main concern
> is to somehow download all the diffs and history ( so if I change
> a file three times on my laptop, there are three new versions of
> the file in the "central" repository, the diffs are the same and the
> log messages are the same ) from a copied repository to a "centrai"
> repository, even when the central repository has been changed. It
> would be nice if I could update the copied repositoy,. but not
> necessary. It would just be nice not to have to recopy the whole
> thing.

...and yet you're describing the *exact* use-model of a decentralized
system.  You're asking for multiple repositories that can exchange
changesets.  That's what arch and bitkeeper and svk all do.  Yes, the
repositories are arranged in a hierarchy, but it's still a
"decentralized" system.  At the moment, Subversion repositories cannot
talk to each other.




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

Re: Some basic svn questions.

Posted by ol...@interaccess.com.
On Wed, 10 Dec 2003 11:28:10 -0600, Ben Collins-Sussman
<su...@collab.net> wrote:

> 3) Sometimes I have questions about how to do something in a project.
>>     I create a small subdirectory, and make a test case for the 
>>     feature in there. Is there a way of not having that subdirectory 
>>    checked in?
>
>Huh?  If you don't want a subdirectory committed, then don't 'svn add'
>it.
>
Sorry. I forgot to add the critical part.
I don't start a project until it is somewhat along.
I think most people will say that you don't check in a project of
1 file and 10 lines of code. Many people will say don't check in
a project of less then 100 lines of code. Few will say the same for a
project with 1000 lines of code.

The point is that I may have some of these directories at the point I
decide to import a project. is there a way of importing the project
without importing these directories?

>> 4) Sometimes I wind up in a circumstance where I do not have access
>>     to the repository. For example I might need to look stuff up to 
>>     get something working. So I go to the nearest university library
>>     and work off the laptop there. Is there a way to copy the 
>>    repository and sync the two repositories at appropriate times?
>
>Subversion is not a distributed repository system, like bitkeeper or
>arch.  There is only one repository.  You can back it up with 'svnadmin
>hotcopy', and then rsync the backup as much as you like.  But this isn't
>the same as "replication" between multiple repositories.
bitkeeper has a very bad license. arch is immature.
Also from what I understand of arch it does not have a "central"
respository, which is something I want. My main concern
is to somehow download all the diffs and history ( so if I change
a file three times on my laptop, there are three new versions of
the file in the "central" repository, the diffs are the same and the
log messages are the same ) from a copied repository to a "centrai"
repository, even when the central repository has been changed. It
would be nice if I could update the copied repositoy,. but not
necessary. It would just be nice not to have to recopy the whole
thing.






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

Re: Some basic svn questions.

Posted by Ben Collins-Sussman <su...@collab.net>.
On Wed, 2003-12-10 at 10:43, olczyk@interaccess.com wrote:

> 1) Is there an equivalent to CVSROOT to specify the repository without
>     typing it in on each commandline.

In general, you only need to type the URL when doing an initial
checkout.  For daily working-copy work, you don't need to type URLs. 
Unless you branch and tag like crazy, it's not a real problem.  Most
people work around the issue by setting a custom environment variable,
like 

  $ export MYREPOS=http://host/path
  $ svn co $MYREPOS/project


> 2) Is there an equivalent of .cvsignore?

Yes, it's the svn:ignore directory property.  Read chapter 6.

> 3) Sometimes I have questions about how to do something in a project.
>     I create a small subdirectory, and make a test case for the 
>     feature in there. Is there a way of not having that subdirectory 
>    checked in?

Huh?  If you don't want a subdirectory committed, then don't 'svn add'
it.

> 4) Sometimes I wind up in a circumstance where I do not have access
>     to the repository. For example I might need to look stuff up to 
>     get something working. So I go to the nearest university library
>     and work off the laptop there. Is there a way to copy the 
>    repository and sync the two repositories at appropriate times?

Subversion is not a distributed repository system, like bitkeeper or
arch.  There is only one repository.  You can back it up with 'svnadmin
hotcopy', and then rsync the backup as much as you like.  But this isn't
the same as "replication" between multiple repositories.



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

Re: Some basic svn questions.

Posted by Jan Hendrik <ja...@bigfoot.com>.
Concerning Some basic svn questions.
olczyk@interaccess.com wrote on 10 Dec 2003, 16:43, at least in part:

[text is snipped]

> 4) Sometimes I wind up in a circumstance where I do not have access
>     to the repository. For example I might need to look stuff up to
>     get something working. So I go to the nearest university library
>     and work off the laptop there. Is there a way to copy the 
>    repository and sync the two repositories at appropriate times?

Perhaps having another working copy on your laptop? I understand 
you as having a network etc. connection between your laptop and 
your desktop at work/home. So before you leave you can commit 
all your changes on the desktop to the repos, then update the 
working copy on your laptop and go to the library and work there. 
Back at your desk you commit your work on the laptop to the 
repos and then update the working copy on the desktop.

Best regards

Jan Hendrik

---------------------------------------
Freedom quote:

     American history has proven when people live in freedom
     the vast majority of sovereign individuals believe in,
     and practice, the golden rule.
                -- Rick Gaber


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