Go Back  IT Forums > Software > Configuration Management
User Name
Password
Reply
 
Thread Tools Search this Thread Display Modes

[TortoiseSVN] One repo with identical file names?
  #1
Old 09-11-2006, 06:41 PM
Vincent Delporte
Junior Member


Vincent Delporte is offline
Vincent Delporte's Info
Join Date: Sep 2006
Posts: 2
Default [TortoiseSVN] One repo with identical file names?

Hello

I don't have deep experience with source control, and would
like to use TortoisSVN on a local host, ie. with no server.

Although I didn't like the fact that any change to the repository,
even when it involved a different project, increased the revision
number, I read in the documentation that it wasn't really not that big
a deal: Just write down that public release 1.0 maps to such and such
revision number in SVN, and that's it.

But... I just imported and commited a file that has a name that
already exists in another project in the repository... and SVN failed
because of this :-/

"Error: File already exists: filesystem C:/Repository/db', transaction
'10-1', path '/my_proj2/Project1.cfg'

=> Do you confirm that having a single repository to host more than
one project means that filenames must be identical throughout all the
projects? IOW, you must set up one repository per project to avoid
filename clashing?

And if you know of a good, short, no-brainer guide to working with
SVN, I'm interested.

Thank you.
Reply With Quote
[TortoiseSVN] One repo with identical file names?
  #2
Old 09-11-2006, 11:35 PM
Marek TROFIMIUK
Junior Member


Marek TROFIMIUK is offline
Marek TROFIMIUK's Info
Join Date: Mar 2006
Posts: 5
Default [TortoiseSVN] One repo with identical file names?

Vincent Delporte <justask@acme.com> wrote:
Quote:
Hello I don't have deep experience with source control, and would like to use TortoisSVN on a local host, ie. with no server. Although I didn't like the fact that any change to the repository, even when it involved a different project, increased the revision number, I read in the documentation that it wasn't really not that big a deal: Just write down that public release 1.0 maps to such and such revision number in SVN, and that's it.


in fact revision numbers are very usefull in a long run ...
Quote:
But... I just imported and commited a file that has a name that already exists in another project in the repository... and SVN failed because of this :-/


i haven't noticed such problems with keeping several eclipse projects
in the same repository. Each project had standard eclipse/ant/etc
configuration files.
Quote:
"Error: File already exists: filesystem C:/Repository/db', transaction '10-1', path '/my_proj2/Project1.cfg' => Do you confirm that having a single repository to host more than one project means that filenames must be identical throughout all the projects? IOW, you must set up one repository per project to avoid filename clashing?


just create a separete folder for each project in the repository root.
Quote:
And if you know of a good, short, no-brainer guide to working with SVN, I'm interested.


SVN redbook: http://svnbook.red-bean.com/
Quote:
Thank you.


You welcome

rgds,
--
Marek Trofimiuk < mt20863 (at) sgh waw pl >
Primary key fingerprint: FA3C 14D8 020F FA0C 70AE 930C F63F F04B 2ADD 9DD7
Reply With Quote
[TortoiseSVN] One repo with identical file names?
  #3
Old 09-12-2006, 07:38 AM
Vincent Delporte
Junior Member


Vincent Delporte is offline
Vincent Delporte's Info
Join Date: Sep 2006
Posts: 2
Default [TortoiseSVN] One repo with identical file names?

On 12 Sep 2006 07:35:07 GMT, Marek TROFIMIUK <mt20863@sgh.waw.pl>
wrote:
Quote:
in fact revision numbers are very usefull in a long run ...


I'm sure they are. What I meant is that if you use a single repository
(which is the default, and I was told it was OK to host several
projects in one repo), the revision number will increase even when
someone commits stuff in a different project, ie. even if nothing
changed in the project you're working on.
Quote:
just create a separete folder for each project in the repository root.


That's what I think I did: When importing a project when
right-clicking on a folder in Windows Explorer:

file:///C:/Repository/my_new_project/

Isn't this a new folder? Do I need to do something else when adding a
new project?
Quote:
SVN redbook: http://svnbook.red-bean.com/


Thanks for the link.
Reply With Quote
[TortoiseSVN] One repo with identical file names?
  #4
Old 09-13-2006, 12:39 AM
Marek TROFIMIUK
Junior Member


Marek TROFIMIUK is offline
Marek TROFIMIUK's Info
Join Date: Mar 2006
Posts: 5
Default [TortoiseSVN] One repo with identical file names?

Vincent Delporte <justask@acme.com> wrote:
Quote:
On 12 Sep 2006 07:35:07 GMT, Marek TROFIMIUK <mt20863@sgh.waw.pl> wrote:
Quote:
in fact revision numbers are very usefull in a long run ...
I'm sure they are. What I meant is that if you use a single repository (which is the default, and I was told it was OK to host several projects in one repo), the revision number will increase even when someone commits stuff in a different project, ie. even if nothing changed in the project you're working on.


but it's doesn't change anything in other projects.
SVN server stores information about rev numbers for each file.
Quote:
Quote:
just create a separete folder for each project in the repository root.
That's what I think I did: When importing a project when right-clicking on a folder in Windows Explorer: file:///C:/Repository/my_new_project/ Isn't this a new folder? Do I need to do something else when adding a new project?


in repo browser you can create the folder structure before importing data
i think the book recommends folder structure with truck, branches and
tags directories. you can also browse the public repo of the apache
fundation at http://svn.apache.org/viewvc/.

rgrds,
--
Marek Trofimiuk < mt20863 (at) sgh waw pl >
Primary key fingerprint: FA3C 14D8 020F FA0C 70AE 930C F63F F04B 2ADD 9DD7
Reply With Quote
One repo with identical file names?
  #5
Old 09-13-2006, 05:29 AM
Xapp
Junior Member


Xapp is offline
Xapp's Info
Join Date: Sep 2006
Posts: 1
Default One repo with identical file names?


Marek TROFIMIUK wrote:
Quote:
Vincent Delporte <justask@acme.com> wrote:
Quote:
On 12 Sep 2006 07:35:07 GMT, Marek TROFIMIUK <mt20863@sgh.waw.pl> wrote:
Quote:
in fact revision numbers are very usefull in a long run ...
I'm sure they are. What I meant is that if you use a single repository (which is the default, and I was told it was OK to host several projects in one repo), the revision number will increase even when someone commits stuff in a different project, ie. even if nothing changed in the project you're working on.
but it's doesn't change anything in other projects. SVN server stores information about rev numbers for each file.


Not so. Read the section on Revisions in the svnbook. Subversion
increments the repository revision for each checkin. The entire repo
has the same revision. So checking in a change to a file will
increment the repository's revision.

Revisions:
http://svnbook.red-bean.com/en/1.0/...n-ch-2-sect-3.2
A deeper explanation:
http://svnbook.red-bean.com/en/1.0/...svn-ch-3-sect-3

Note: A working copy may have mixed revisions and you can create
branches and tags from mixed revsions.

Quote:
Quote:
just create a separete folder for each project in the repository root.
That's what I think I did: When importing a project when right-clicking on a folder in Windows Explorer: file:///C:/Repository/my_new_project/ Isn't this a new folder? Do I need to do something else when adding a new project? in repo browser you can create the folder structure before importing data i think the book recommends folder structure with truck, branches and tags directories. you can also browse the public repo of the apache fundation at http://svn.apache.org/viewvc/.


Branching and merging:
http://svnbook.red-bean.com/en/1.0/...k.html#svn-ch-4
Quote:
rgrds, -- Marek Trofimiuk < mt20863 (at) sgh waw pl > Primary key fingerprint: FA3C 14D8 020F FA0C 70AE 930C F63F F04B 2ADD 9DD7


--Xapp

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



Powered by: vBulletin Version 3.0.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Style Design by vBStyles.com


Top Contact Us - IT Forums - Archive - MyLounge Top
MyLounge.com Site Map
Forum: Cars, Cell Phone, Database, Games, Home Improvement, IT, Music, School, Sports, Web Design, Web Server, Weight Loss

The MyLounge.com forum is intended for informational use only and should not be relied upon and is not a substitute for any advice. The information contained on MyLounge.com are opinions and suggestions of members and is not a representation of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for the accuracy, completeness or usefulness of any postings or the qualifications of any person responding. Please consult a expert or seek the services of an attorney in your area for more accuracy on your specific situation. Please note that our forums also serve as mirrors to Usenet newsgroups. Many posts you see on our forums are made by newsgroup users who may not be members of MyLounge.com Term of Service