Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Alternative Civs > Clash of Civilizations > Clash Version Control
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
04.Sep: `FC` 2.0.5 COMPLETED AND RELEASED
27.Jul: `FC` 2.0.4 COMPLETED AND RELEASED
16.Jul: `FC` 2.0.3 COMPLETED AND RELEASED

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
vovan is offline vovan
Emperor

Oct 2001
time: 06:19
  Old Post 28-11-2004 03:47
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Clash Version Control Support Apolyton buy from Amazon

I have set up a Subversion server for the Clash of Civilizations on my site that can be used for version control. Here is how to use it:

1. If you are using Windows, the easiest way to go is get a graphical client that integrates with the Explorer and allows you to easily interact with SVN. A good client that I use is TortoiseSVN: http://tortoisesvn.tigris.org/. The documentation on the Tortoise site should be enough to get you started with it. If you are using a different operating system, or if you don't want to use a graphical client, you can always use the command-line svn client: http://subversion.tigris.org/.

2. Once you have your client set up, check out from the following URL: http://www.vovan.net/svn/clash/trunk. (You can also point your browser to that URL, if you only want to view the files, but not necessarily download them to your machine.)

3. Notice that it asks you for a username and password. To obtain those, please email vovan AT vovan DOT net and in the body of the email specify the desired username and password. Also, because I get plenty of spam on that address, please put [Clash] in the subject of the email somewhere so my spam filter doesn't kill the email. Finally, if you are not Mark or Laurent or someone else I know is working on the project, please do give me some way of knowing you should be allowed to view the repository. Like ask Mark to email me or have him post here, or something.

4. Alright, once you get your username and password set up, you can view the repository at any time through a browser, and you can also check out from the repository and commit the changes you made. Note that the first checkout will take some time because the repository is pretty big - over 10MB. The consequent updates will be much faster, as only the changed files will be transferred to your machine.


Here is a list of people that currently have access to the repository:

Apolyton username - SVN username
vovan - vovan
alms66 - alms66
LDiCesare - LDiCesare
Mark_Everson - Mark_Everson
Gary Thomas - gthomas

(You mostly want to know people's SVN username so that you can use the "Blame" feature to know who changed the code that causes a bug. If you want to do that.)

Note that I have added an Ant build file, so you can easily compile and run the application, by simply typing "ant run", which will automatically recompile the sources that need recompiling, and will run the game.

Last edited by vovan on 29-11-2004 at 04:41

vovan is offline vovan
Emperor

Oct 2001
time: 06:19
  Old Post 28-11-2004 03:49
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

Also, in case we would like to use it, I set up a bug tracking system at: http://www.vovan.net/bugzilla. If we want to, we can use that to keep track of issues in the game.

Mark_Everson is offline Mark_Everson
Clash of Civilizations Project Lead
Canton, MI
Jan 1970
time: 00:19
  Old Post 28-11-2004 06:32 Visit Mark_Everson's homepage!
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Tired of ads?

Thanks Vovan! :b

Is there a way to give visitors read-only access? That way we could give people access without worrying about them mucking things up.

vovan is offline vovan
Emperor

Oct 2001
time: 06:19
  Old Post 28-11-2004 23:01
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Lose 30 kilos (of popups)

quote:
Originally posted by Mark_Everson
Is there a way to give visitors read-only access? That way we could give people access without worrying about them mucking things up.


Mark,

Yes, that is quite possible. If you would like me to give someone a read-only account (I don't suppose you want the code readable by everyone), just say so.

Vovan

Mark_Everson is offline Mark_Everson
Clash of Civilizations Project Lead
Canton, MI
Jan 1970
time: 00:19
Question  Old Post 29-11-2004 00:02 Visit Mark_Everson's homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Question for the Team Tired of ads?

Thanks Vovan.

Now that sets up a big question for the team. Should we allow passers-by read-only access to the code?

Main Advantage:

Show people the volume and quality of code and potentially aid in roping coders in quicker/ better. We might get some coders that we otherwise would lose, esp those that are used to immed code d/l

Main Disadvantage:

The code would be out there anywhere. Then again, if people ask for it when expressing interest in coding we generally make it available.

What do people think?

LDiCesare is offline LDiCesare
King
La Ferté sous Jouarre France
Jan 2001
time: 05:19
  Old Post 03-12-2004 23:39
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

I don't care if you put the code in access to anyone, but you'll just have to put up a license of some kind to avoid trouble. I'm not in lawyers things, but any license which says that you can't sell the game or the modified game without your approval would do.

LDiCesare is offline LDiCesare
King
La Ferté sous Jouarre France
Jan 2001
time: 05:19
  Old Post 04-12-2004 01:35
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Browse Apolyton AD-FREE

I just committed my first changes. Probably created some empty revisions when I insisted to use 'import' instead of 'check out'... <lame excuse>But then at work we have commands of adl_import and adl_co which both do some kind of check out. </lame excuse>
I hope I didn't forget anything and it all builds on the remote server. Great to have this, and TortoiseSVN is very nice. Having integrated icons rocks (I asked that at work but the poor girl who's in charge of our tools answered wisely that she'd probably never be given the time to give us that functionality).

vovan is offline vovan
Emperor

Oct 2001
time: 06:19
  Old Post 04-12-2004 08:11
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Get a bigger avatar today!

Laurent, I got your updates, and it all compiles.

You normally don't want to use import or check out, though (import is for setting up a new repository, and check out is for getting a clean version of the repository on your machine). To get the other people's changes from the repository, do an update. If you've changed something yourself, do a commit. If you have added a new file, do an add and then a commit. If you want a file removed, do a remove and then a commit.

Vovan

Mark_Everson is offline Mark_Everson
Clash of Civilizations Project Lead
Canton, MI
Jan 1970
time: 00:19
  Old Post 04-12-2004 19:36 Visit Mark_Everson's homepage!
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

Thanks for the mini-tutorial Vovan. I'm completely new to this kind of thing. I did a test checkout last night, and that seemed to go ok, but I havent' tried to build from it yet.

Thanks for getting this going.

Mark_Everson is offline Mark_Everson
Clash of Civilizations Project Lead
Canton, MI
Jan 1970
time: 00:19
  Old Post 04-12-2004 21:12 Visit Mark_Everson's homepage!
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
More issues from the curmudgeon. . . Support Apolyton buy from Amazon

BTW cool pic Vovan!

Ok, in the old email code system when I got a zip from someone they usually said what big things they had done, and how to use it. With this system it's a mystery what was done, other than whatever is mentioned on the forum.

Personally I would still like to see an email notification of what has been done when something has been updated. How can we handle this?

Unfortunately, I get the feeling that most of my limited Clash time this weekend is going to be "invested" in getting this thing to work given my limited knowledge.

vovan is offline vovan
Emperor

Oct 2001
time: 06:19
  Old Post 04-12-2004 21:23
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Re: More issues from the curmudgeon. . . Support Apolyton buy from Amazon

quote:
Originally posted by Mark_Everson
BTW cool pic Vovan!


Thank you.

quote:
Originally posted by Mark_Everson
Ok, in the old email code system when I got a zip from someone they usually said what big things they had done, and how to use it. With this system it's a mystery what was done, other than whatever is mentioned on the forum.

Personally I would still like to see an email notification of what has been done when something has been updated. How can we handle this?


Mark, there are several ways to handle this without any extra notifications. One thing you could do is the following. You have the clash directory containing the checked out version of the repository on your hard drive right? So, you right-click it and hit "Update". That will bring your local copy up to date with the global copy. Now, you will see a list saying which files were updated. The list has thre buttons: "Show Log", "OK", and "Cancel". Click the "Show Log" button. That will bring up the list of revisions you just got. For instance, I just updated, and it says:

Revision 24, Author LDiCesare, Date 5:41:40 AM, Message "Fix a rare bug which occurred when the ai merged commands that waited for reinforcements."

When I click that update to select it, I see which three files were modified. I can double-click a file, and that will bring up a diff view, where you can see precisely what was changed.

If you would like to view this at a later date, you can always right-click your directory, select the TortoiseSVN submenu, and then click the "Show Log" button. That will again show you precisely what updates were made recently, and what was changed.

quote:
Originally posted by Mark_Everson
Unfortunately, I get the feeling that most of my limited Clash time this weekend is going to be "invested" in getting this thing to work given my limited knowledge.


If you have trouble with anything, feel free to ask. This is a very convenient system, so if something is a pain in the ass, then ask, maybe you are not doing something right. I don't want this to be painful.

Vovan

vovan is offline vovan
Emperor

Oct 2001
time: 06:19
  Old Post 04-12-2004 21:32
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Support Apolyton buy from Amazon

Yes, here's how you get the log again.

Attachment: show-log.gif
This has been downloaded 47 time(s).

Mark_Everson is offline Mark_Everson
Clash of Civilizations Project Lead
Canton, MI
Jan 1970
time: 00:19
  Old Post 04-12-2004 21:33 Visit Mark_Everson's homepage!
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Inflate your Upload Space

Thanks Vovan! That does sound relatively painless.

I'll probably take you up on your kind offer again soon.

LDiCesare is offline LDiCesare
King
La Ferté sous Jouarre France
Jan 2001
time: 05:19
  Old Post 04-12-2004 22:36
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Get a bigger avatar today!

This system doesn't prevent mailing for major updates, but it's really not necessary to send an email everytime.
In fact, I'll tend to do 2 kinds of commits.
- Big commits (probably on Firdays and Saturdays) when I've finished a lot of things done during the week. These will get a big message about what happened, but I'll forget some things.
- Small commits. I've probably made about 10 of these already. If I change a set of files for one identified bug, it's simpler in order to track the bug to deliver it in a separate transaction. I don't want to flood the system with one-file updates though. Vovan, do you know how SVN scales? It makes a revision for the whole tree every time one does a commit, but I believe it's just a logical number and doesn't eat extra disk space? If that's the case, I'll make several small deliveries, each with detailed explanation, separate one from another, because it can help track things in the long run.

Mark, believe us, this system rocks in comparison with the send-by-e-mail. I never used TortoiseSVN before this week end (though I used things like sniff, CVS...) and I'll hate it that we have something more scalable (database based and not filebased) but so much less user-friendly at work on monday...

vovan is offline vovan
Emperor

Oct 2001
time: 06:19
  Old Post 04-12-2004 23:38
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations: Deluxe Edition

quote:
Originally posted by LDiCesare
Vovan, do you know how SVN scales? It makes a revision for the whole tree every time one does a commit, but I believe it's just a logical number and doesn't eat extra disk space? If that's the case, I'll make several small deliveries, each with detailed explanation, separate one from another, because it can help track things in the long run.


Laurent,

The version of SVN I have installed currently does actually use BerkeleyDB for storing the repository, and they have a clever revision tracking system (you can read about it in the documentation on their site), so it scales fairly well, IMO. As far as "flooding" the system with many commits, definitely don't worry about it! It doesn't make a whole new copy of the repository every time you commit. In fact, I would encourage you to do one-file commits instead of big ones, because that way, it is easier to keep track of changes, and unroll them if need be.

For what it's worth, I'll tell you that we used SVN for a college project this semester with my teammates, and we were very satisfied with it. Right now, the project is finished, and looking at SVN, I see that we made ~1000 revisions, with the whole thing being ~35K lines of code plus assets like graphics and sounds.

LDiCesare is offline LDiCesare
King
La Ferté sous Jouarre France
Jan 2001
time: 05:19
  Old Post 05-12-2004 00:28
Edit/Delete Message Reply w/Quote
#16 Report this post to a moderator
Remove this text

I'm sure it scales up to certain limits and will be perfect for Clash. But at work, we have in the tens (maybe even hundreds) of millions of lines of code, and I am not sure subversion scales up to that. Anyway, when they tried CVS way back then, it didn't, so we have something else.
I'll probably do big commits because I can't access the web during the week (most of the time). But I'll go for per-file commit as much as I can.

vovan is offline vovan
Emperor

Oct 2001
time: 06:19
  Old Post 05-12-2004 02:30
Edit/Delete Message Reply w/Quote
#17 Report this post to a moderator
Tired of ads?

quote:
Originally posted by LDiCesare
I'm sure it scales up to certain limits and will be perfect for Clash. But at work, we have in the tens (maybe even hundreds) of millions of lines of code, and I am not sure subversion scales up to that. Anyway, when they tried CVS way back then, it didn't, so we have something else.


Oh, yes, I was thinking about Clash above. I don't really know how well it would work for huge projects.

Mark_Everson is offline Mark_Everson
Clash of Civilizations Project Lead
Canton, MI
Jan 1970
time: 00:19
Thumbs up  Old Post 05-12-2004 07:44 Visit Mark_Everson's homepage!
Edit/Delete Message Reply w/Quote
#18 Report this post to a moderator
OK, you've won me over Support Apolyton or Terrorists Win

I'm a convert, this is Much easier than the email stuff! The only problem with my first commit is that I couldn't figure out how to put the comment up right, and got a generic one instead.

Cya,

Mark

Gary Thomas is offline Gary Thomas
Prince
New Zealand
Mar 2001
time: 17:19
  Old Post 06-12-2004 23:14
Edit/Delete Message Reply w/Quote
#19 Report this post to a moderator
Support Apolyton buy from Amazon

TortoiseSVN is driving me crazy.

I downloaded it and installed it (under XP).

The programs list now, under Tortoise, lists:


  • Help
  • TortoiseMerge
  • Website


and nothing else.

No program.

What is missing?

In effect, how do I get Tortoise to run, or do something?

Cheers

Mark_Everson is offline Mark_Everson
Clash of Civilizations Project Lead
Canton, MI
Jan 1970
time: 00:19
  Old Post 07-12-2004 05:41 Visit Mark_Everson's homepage!
Edit/Delete Message Reply w/Quote
#20 Report this post to a moderator
Increase the size of your Attachments

I had the same problems Gary. The win version uses windows explorer (WE) intimately.

1. Fire up WE
2. Right-click on the dir that you want to put the files in
3. Pick "Update" from the menu (It is shown in Vovan's screen shot above)
4. Put in the url etc as V says in #2 of his first post in this thread. Add your ID and PW.

Should grab all the files at that point IIRC.

The help file that comes with the program is also useful in getting that first load.

Gary Thomas is offline Gary Thomas
Prince
New Zealand
Mar 2001
time: 17:19
  Old Post 07-12-2004 08:54
Edit/Delete Message Reply w/Quote
#21 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

Thanks, Mark.

It all worked fine.

Like you, I am convinced.

Cheers

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:19.
Apolyton Time is 00:19.
    top of page
Rate This Thread:
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0579 seconds (92.30% PHP - 7.70% MySQL) with 30 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net