473,382 Members | 1,784 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

python under subversion (svn)

I'm experimenting with svn. What is the best way to set up the
original project, anticipating "importing" to a truck-and-branch
world?

When I start I have:
myproject/
doc/
mypackage/
stable.py
changing.py
test/
go_test

To do branches, I think I'm supposed to get to end up with:

myproject/
trunk/
doc/
mypackage/
stable.py
test/
go_test
branches/
branch1/
mypackage/
changing.py
test/
go_test

But a simple "import" of the starting project doesn't get me to the
endpoint, and the "go_test" scripts have to be tweaked to point to the
right PYTHONPATH's to pickup both stable and changing modules.

Am I correctly understanding the problem? Are there clean solutions?
Should I be totally replicating the whole project under trunk and each
branch, instead of trying to keep some items on the trunk?

--
ha************@boeing.com
6-6M21 BCA CompArch Design Engineering
Phone: (425) 342-0007
Jul 18 '05 #1
3 1298

[Harry]
I'm experimenting with svn. [...]
Should I be totally replicating the whole project under trunk and each
branch, instead of trying to keep some items on the trunk?


Yes, I believe so. The way to get to where you want to go is to import your
project onto the trunk, then create a branch by taking a copy of the entire
trunk project (which sounds expensive but isn't).

You also need to decide whether your trunk and branches will live at the top
level with the projects underneath them, or whether the projects will live
at the top level with the trunks and branches underneath them. Because of
the way I'm traditionally accustomed to using CVS, I prefer to think of the
trunk and branches as top-level concepts with the projects living within
them. Hence I'd do something like this:

After import:

trunk/
myproject/
doc/
mypackage/
stable.py
changing.py
test/
go_test

After creating a branch:

trunk/
myproject/
doc/
mypackage/
stable.py
changing.py
test/
go_test

branches/
mybranch/
myproject/
doc/
mypackage/
stable.py
changing.py
test/
go_test

--
Richie Hindle
ri****@entrian.com
Jul 18 '05 #2
Richie Hindle <ri****@entrian.com> wrote in message news:<ma*************************************@pyth on.org>...
You also need to decide whether your trunk and branches will live at the top
level with the projects underneath them, or whether the projects will live
at the top level with the trunks and branches underneath them. Because of
the way I'm traditionally accustomed to using CVS, I prefer to think of the
trunk and branches as top-level concepts with the projects living within
them. Hence I'd do something like this:

After import:

trunk/
myproject/
doc/
mypackage/
stable.py
changing.py
test/
go_test


Having "trunk" at the top level and projects under it is also better when you
have multiple projects. This is because you can do one checkout of the
"trunk" root directory and get the main version of all projects in one go.
If you have the "trunk" under the project name, you have to do a checkout
on each projects trunk to get the latest of everything, which is more work.
Jul 18 '05 #3
gr*****@dscpl.com.au (Graham Dumpleton) writes:
Richie Hindle <ri****@entrian.com> wrote in message news:<ma*************************************@pyth on.org>...
You also need to decide whether your trunk and branches will live at the top
level with the projects underneath them, or whether the projects will live
at the top level with the trunks and branches underneath them. Because of
the way I'm traditionally accustomed to using CVS, I prefer to think of the
trunk and branches as top-level concepts with the projects living within
them. Hence I'd do something like this:

After import:

trunk/
myproject/
doc/
mypackage/
stable.py
changing.py
test/
go_test


Having "trunk" at the top level and projects under it is also better when you
have multiple projects. This is because you can do one checkout of the
"trunk" root directory and get the main version of all projects in one go.
If you have the "trunk" under the project name, you have to do a checkout
on each projects trunk to get the latest of everything, which is more work.

I know the svn recommendation is trunk at the top. But we have
several substantially separate development efforts in the same
repository, so we don't wnat to check out everything. The development
groups don't even know each other. I'm thinking I need a separate
repository (with trunk at the top) for each community.

--
ha************@boeing.com
6-6M21 BCA CompArch Design Engineering
Phone: (425) 342-0007
Jul 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: bruce | last post by:
hi... in trying to get viewcvs up/running, i tried to do the following: # python Python 2.3.3 (#1, May 7 2004, 10:31:40) on linux2 Type "help", "copyright", "credits" or "license" for more...
3
by: patkinson | last post by:
Hello, I am one of those guys trying with no chance to get a working copy of TRAC for python 2.5 http://trac.edgewall.org/ is a superb Project managment tool with a wiki, control version...
3
by: Mike B | last post by:
I'm trying to get Subversion 'hook scripts' working on an Ubuntu box and the following fails. from svn import fs, repos, core, delta As far as I can tell there are two Python Subversion...
0
nathj
by: nathj | last post by:
Hi, While I know this is not strictly a Java issue I thought this would be the place to post as I know a lot of Java developers use Eclipse and most likely use SVN and Subclipse. First up...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.