|
|||||||
New to SitePoint Forums? Register here for free!
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
simple tester
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Sep 2003
Location: Glasgow
Posts: 1,685
|
CVS v SVN
I help maintain another php forum and I'm about to start a project to refactor/rewrite the (phpBB) forum code into OOP & unit tests (probably using php5). I guess phpBB is a good program from the point of view of allowing budding php-ers to easily create their own mods but (despite this warning) I'm not keen to have to work with something lacking OOP & tests, particularly in a team environment.
At the moment we're just drafting The Plan and I'm wondering whether to recommend subversion rather than CVS. Hassle-free renaming & moving files sounds like a big plus. I'd expect a lot of that until some kind of stable architecture evolves. I'd be interested to hear of your experiences of CVS v Subversion. Have you found that CVS can hinder a flexible design process in this way? The site Berlios offer free open source project hosting with subversion and look like an interesting alternative to sourceforge. Anyone had any experience of them? |
|
|
|
|
|
#2 | |
|
SitePoint Addict
![]() ![]() ![]() Join Date: Mar 2004
Location: Russia, Penza
Posts: 274
|
Quote:
The repository used to get wedged very often, however the support crew does its best to fix these errors. And it seems these repository errors are gradually getting fixed, in the past month we had the repo wedged only for couple times...Guys at tigris.org promise to launch svn support soon, i think you should check 'em out also... |
|
|
|
|
|
|
#3 |
|
simple tester
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Sep 2003
Location: Glasgow
Posts: 1,685
|
Thanks for the info. Not sure what you mean by wedged - but it sure doesn't sound good. Did you lose any files or versioning info?
|
|
|
|
|
|
#4 | ||
|
SitePoint Addict
![]() ![]() ![]() Join Date: Mar 2004
Location: Russia, Penza
Posts: 274
|
Quote:
Quote:
svnadmin recover /svnroot/repos/limb Believe me this one will be your most used one at berlios.de ![]() Lucky we are we never lost any information... |
||
|
|
|
|
|
#5 |
|
simple tester
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Sep 2003
Location: Glasgow
Posts: 1,685
|
Thanks for the advice. If it's no more than an occasional nuisance, and they're making progress to sort it out, I could probably put up with that.
I find I change directory structures a lot in the beginning of a project (later on it settles down) so I'm keen to try out subversion. |
|
|
|
|
|
#6 |
|
SitePoint Enthusiast
![]() Join Date: Apr 2004
Location: Germany
Posts: 90
|
I used CVS quite some time, though never in big projects. I also set up some CVS repositories for other people.
My conclusion: it is okay, but lacks essential features. So I tried Subversion for a software engineering project at the university with 2 friends. It installed easily (at least on my Debian server ) and a repository was created very quick (with authentication, of course) using svnserve via inetd as server.As we moved and renamed files often (bad design ), I was more than grateful that Subversion handled that very fine.I did not have any trouble at all in that project (at least none with Subversion ).Recently I switched to mod_svn with Apache 2 because it supports multiple repositories, (more or less) good access control. You can also browse your repositories with a web-browser, but that is pretty spartanic (you might want to use Chora or ViewCVS if you need a more sophisticated webclient). But Subversion has its flaws, too. All files have the same global revision number and the repository is a single Berkeley DB file (see here and do some google'ing about that) and other implementations are AFAIK not yet in the release branch. Anyways, be sure to read Version Control with Subversion and give SVN a chance ![]() |
|
|
|
|
|
#7 | |
|
SitePoint Member
Join Date: Sep 2004
Location: New Zealand
Posts: 13
|
Quote:
|
|
|
|
|
|
|
#8 | |
|
SitePoint Zealot
![]() ![]() Join Date: Oct 2002
Posts: 174
|
Quote:
speaking out of some experience with phpBB : its such an awfull peace of software. can't count the times banging my head on some walls while trying to incooperate phpBB in a community site. the whole phpBB code looks like crap so i think "refactoring" becomes more like a complete rewrite but im interested if you are willing to share your results (=Sike |
|
|
|
|
|
|
#9 |
|
simple tester
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Sep 2003
Location: Glasgow
Posts: 1,685
|
It'll be the usual sourceforge (or similar) open source project.
There's some talk about using web services to solve a problem with logging in members on multiple sub-domains as well as other things like allowing forum content (etc) to be distributed across other sites so there could be a great deal of scope for "sharing". Since we're (devnetwork.net) all about learning php I'm thinking about having the whole development conversation as open discussion. Might be educational as an example of how to work together as a team, tools & methodologies to use, design and so on. (Or possibly an example of how NOT to do it... !). I don't know. Might be better to write something up later. I expect it to be a slow, long-term project though. If we had something deployable by next summer I'd be more than happy. |
|
|
|
|
|
#10 |
|
SitePoint Guru
![]() ![]() ![]() ![]() ![]() Join Date: Sep 2003
Location: Wixom, Michigan
Posts: 619
|
Just a side note: if your problem is cross-subdomain authentication, cookies can be set for a domain so that they will be sent back to all its subdomains.
|
|
|
|
|
|
#11 | |
|
SitePoint Zealot
![]() ![]() Join Date: Sep 2003
Location: Bristol, UK
Posts: 153
|
Quote:
![]() Don't think too badly of berlios becuse your repository gets wedged from time to time. I have complete administrative control over my local repository (and I'm the only one who uses it). I too have to do svnadmin recover every now and again. So assuming I have Subversion set up properly it's clear that the problems you've had are no fault of berlios, but something you have to deal with once in a while if you use Subversion. |
|
|
|
|
|
|
#12 | ||
|
SitePoint Addict
![]() ![]() ![]() Join Date: Mar 2004
Location: Russia, Penza
Posts: 274
|
Quote:
Anyway it's free and the berlios team does its best to fix the errors. Still recovering the repo 6 times a day is no fun at all ![]() Quote:
Last edited by pachanga; Sep 15, 2004 at 09:49. |
||
|
|
|
|
|
#13 |
|
FreeBSD The Power to Serve
![]() Join Date: Jul 2001
Location: Italy
Posts: 4,574
|
> All files have the same global revision number and the repository is a single Berkeley DB file
Yup hope the 1.1, that support a new non-database repository back-end, will be released soon, RC3 actually. If you are working with binary files, such as images, CVS will store a whole copy of it when you make change. Subversion uses a binary diff algorithm. Never used CVS and Subversion, though ![]() Andrea |
|
|
|
|
|
#14 | ||
|
SitePoint Zealot
![]() ![]() Join Date: Sep 2003
Location: Bristol, UK
Posts: 153
|
Quote:
- maybe 6 times a fortnight, but that may be down to the fact that I'm the only one using the repository.Quote:
|
||
|
|
|
|
|
#15 |
|
Yugo full of anvils
![]() Join Date: May 2001
Location: :noitacoL
Posts: 1,877
|
SVN is way better than CVS in my opinion. Mostly because it imposes a lot less constraints on you - like allowing directory renaming.
The new version of Subversion (1.1) is just out and supports a new fsfs backend that is not prone to wedging. Downside is that it's less tested than the BerkeleyDB backend at this point. |
|
|
|
|
|
#16 |
|
SitePoint Member
Join Date: Mar 2004
Location: Indiana
Posts: 23
|
If you are looking at only CVS vs. Subversion, it should be a no brainer. Subversion. Atomic commits are essential, particularly if you have an active development cycle. However, I recently started using GNU Arch, and I've ditched both CVS and Subversion in favor of it. My 2c.
-Blake |
|
|
|
|
|
#17 |
|
SitePoint Wizard
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Aug 2004
Location: California
Posts: 1,672
|
On the other hand. If you are looking for something that is supported everywhere and just works then CVS is fine. For single user and small teams the features that Subversion and Arch add are not that necessary.
|
|
|
|
|
|
#18 |
|
Yugo full of anvils
![]() Join Date: May 2001
Location: :noitacoL
Posts: 1,877
|
I don't really agree with that from the point of view of features. The ability to rename directories and the ability to do atomic commits are two really killer features of SVN over CVS, in my opinion. And they're features that are useful no matter how big your team is. I've already had a couple of occasions to be thankful for atomic commits, and I've only been using SVN for a couple of months.
On the other hand you are 100% correct when you say that CVS is more widely supported/deployed. Ultimately I don't think anyone would recommend not using CVS - it's a lot better than using nothing. However I do think that using SVN instead of CVS is a no-brainer, if both are available. |
|
|
|
|
|
#19 | |
|
Yugo full of anvils
![]() Join Date: May 2001
Location: :noitacoL
Posts: 1,877
|
Quote:
We've just implemented SVN at work. We would have seriously considered Arch, except for the fact it's Unix only. Not that that's a problem, it's just we've got a lot of Windows servers and expertise so it made more sense to deploy on Windows if possible. Also most of the decent Arch client tools seemed to be Unix-based, and messing with Cygwin was not an option. |
|
|
|
|
|
|
#20 |
|
does not play well with others
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jan 2003
Location: Munich, Germany
Posts: 1,370
|
Tried to use SVN but what's confusing me is that it obviously doesn't support the 'headline' as known from CVS, eg
$Id: newsletter.php,v 1.10 2004/09/14 09:53:06 frezno Exp $ but handles it differently. So how do i know, looking at the file, what version/state it is? |
|
|
|
|
|
#21 | |
|
eschew sesquipedalians
![]() ![]() Join Date: Jun 2003
Location: Iowa, USA
Posts: 3,779
|
Quote:
http://svnbook.red-bean.com/svnbook-...h-7-sect-2.3.4 |
|
|
|
|
|
|
#22 | |
|
does not play well with others
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jan 2003
Location: Munich, Germany
Posts: 1,370
|
Quote:
There should be a lable at the beginning saying: "Best viewed with open eyes". Thanks Jason |
|
|
|
|
|
|
#23 | |
|
SitePoint Enthusiast
![]() Join Date: Oct 2000
Location: Atlanta
Posts: 96
|
Quote:
If you can get Chora setup (requries bleeding edge copy of Horde and Chora from CVS), then you got a very nice web interface to the repository. There was a nice tip above that I did not realize that Subversion could do which is document the versioning tags. Since I'm using phpDoc, works great ![]() |
|
|
|
|
|
|
#24 | |
|
Yugo full of anvils
![]() Join Date: May 2001
Location: :noitacoL
Posts: 1,877
|
Quote:
|
|
|
|
|
|
|
#25 |
|
SitePoint Member
Join Date: Oct 2004
Location: Colorado, US
Posts: 4
|
I have used CVS, svn, and Arch, and I must say that GNU Arch is vastly superior. I use it for all my development, and it's simply great.
|
|
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
|
All times are GMT -7. The time now is 08:15.






The repository used to get wedged very often, however the support crew does its best to fix these errors. And it seems these repository errors are gradually getting fixed, in the past month we had the repo wedged only for couple times...
) and a repository was created very quick (with authentication, of course) using svnserve via inetd as server.
), I was more than grateful that Subversion handled that very fine.
).
but im interested if you are willing to share your results (=





Linear Mode
