You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Lee Sherry <go...@gmail.com> on 2006/05/31 11:56:58 UTC

Few questions on Subversion

Hello users,

I have a few questions regarding subversion. I have a repository set
up on a linux machine, and use it as a central repository for company
files, Word / Excel / PDF and more.

Me and my colleagues use TortoiseSVN to keep updated with each others
changes etc.

1. As the repo gets larger is there a way to skip having to download
all the files into your working copy? i.e copy initial files from a cd
backup, to save new users from having to do a large download?

2. What is the best way to deal with files such as THUMBS.DB that XP
seems to create and modify, thus making your working copy almost
constantly out of date?

3. As the repo gets larger, is there a way to flatten the versions,
i.e remove all but the head version, to trim on space?

Any hints on the above questions would be very helpfull.

Thanks in advance.



Lee

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

Re: Few questions on Subversion

Posted by Duncan Murdoch <mu...@stats.uwo.ca>.
On 5/31/2006 7:56 AM, Lee Sherry wrote:
> Hello users,
> 
> I have a few questions regarding subversion. I have a repository set
> up on a linux machine, and use it as a central repository for company
> files, Word / Excel / PDF and more.
> 
> Me and my colleagues use TortoiseSVN to keep updated with each others
> changes etc.
> 
> 1. As the repo gets larger is there a way to skip having to download
> all the files into your working copy? i.e copy initial files from a cd
> backup, to save new users from having to do a large download?

You can check out any subdirectory of the repository, you don't need to 
check out the whole thing.  You should organize your projects into 
separate subdirectories.
> 
> 2. What is the best way to deal with files such as THUMBS.DB that XP
> seems to create and modify, thus making your working copy almost
> constantly out of date?

Don't commit them.  If you have already committed them, then remove them 
from the current version in the repository, and recreate them afterwards 
but leave them unversioned.

Generally you don't want to commit files that are created automatically 
by programs, you only want to commit files if there is some 
human-generated content in them that you want to preserve.  An exception 
might be if you absolutely want to be sure that the automatically 
created content is preserved, because you're worried the programs that 
create it might not work next year when you want to look back at this 
year's copy.
> 
> 3. As the repo gets larger, is there a way to flatten the versions,
> i.e remove all but the head version, to trim on space?

You could create a new repository each year (or for each project), and 
toss out the old ones when you are no longer interested in the projects 
in them.

You could also export the whole repository then import it into a new 
repository.  Remember that this loses the entire history, and may lose 
property settings on some files if you've used those.  If it makes sense 
to do this, then Subversion might not be the right tool for you.  There 
are other mirroring tools if you don't care about maintaining the  history.

> 
> Any hints on the above questions would be very helpfull.
> 
> Thanks in advance.
> 
> 
> 
> Lee
> 
> ---------------------------------------------------------------------
> 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: Few questions on Subversion

Posted by Nico Kadel-Garcia <nk...@comcast.net>.
Andy Levy wrote:
> On 5/31/06, Lee Sherry <go...@gmail.com> wrote:
>> Hello users,
>>
>> I have a few questions regarding subversion. I have a repository set
>> up on a linux machine, and use it as a central repository for company
>> files, Word / Excel / PDF and more.
>>
>> Me and my colleagues use TortoiseSVN to keep updated with each others
>> changes etc.
>>
>> 1. As the repo gets larger is there a way to skip having to download
>> all the files into your working copy? i.e copy initial files from a
>> cd backup, to save new users from having to do a large download?
>
> I think you can distribute a "pre-made" working copy.  Just make sure
> the recipient updates immediately, and that all files are not marked
> read-only upon copying from the CD.

It can also be useful to have a "read-only", web or SMB or NFS or whatever 
accessible, up-to-date image of the particular project. Simply set a cron 
job to keep it updated on a regular basis, and let the user do a "switch" or 
"branch" to their own working copy as necessary.

> Or, just have users only check out the directories they need, instead
> of everything.
>
>> 2. What is the best way to deal with files such as THUMBS.DB that XP
>> seems to create and modify, thus making your working copy almost
>> constantly out of date?
>
> Ignore them with svn:ignore (auto-props comes in handy here).
>
>> 3. As the repo gets larger, is there a way to flatten the versions,
>> i.e remove all but the head version, to trim on space?
>
> That would defeat the purpose of using a version control system.  Each
> newer version is stored as a diff against an earlier version, so doing
> this would be rather time-consuming.  How large/fast do you think the
> repository will grow?
>
> ---------------------------------------------------------------------
> 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: Few questions on Subversion

Posted by Andy Levy <an...@gmail.com>.
On 5/31/06, Lee Sherry <go...@gmail.com> wrote:
> Hello users,
>
> I have a few questions regarding subversion. I have a repository set
> up on a linux machine, and use it as a central repository for company
> files, Word / Excel / PDF and more.
>
> Me and my colleagues use TortoiseSVN to keep updated with each others
> changes etc.
>
> 1. As the repo gets larger is there a way to skip having to download
> all the files into your working copy? i.e copy initial files from a cd
> backup, to save new users from having to do a large download?

I think you can distribute a "pre-made" working copy.  Just make sure
the recipient updates immediately, and that all files are not marked
read-only upon copying from the CD.

Or, just have users only check out the directories they need, instead
of everything.

> 2. What is the best way to deal with files such as THUMBS.DB that XP
> seems to create and modify, thus making your working copy almost
> constantly out of date?

Ignore them with svn:ignore (auto-props comes in handy here).

> 3. As the repo gets larger, is there a way to flatten the versions,
> i.e remove all but the head version, to trim on space?

That would defeat the purpose of using a version control system.  Each
newer version is stored as a diff against an earlier version, so doing
this would be rather time-consuming.  How large/fast do you think the
repository will grow?

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