It is currently 03 Nov 2025, 04:17
   
Text Size

SVN

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Agetian, friarsol, Blacksmith, KrazyTheFox, CCGHQ Admins

Re: SVN

Postby Rob Cashwalker » 15 Oct 2009, 19:29

I downloaded and installed the subversive component for eclipse, and have it connected to our SVN. But I haven't had a chance to actually figure out how to make it WORK. (anything other than just browsing the branches and stuff)
The Force will be with you, Always.
User avatar
Rob Cashwalker
Programmer
 
Posts: 2167
Joined: 09 Sep 2008, 15:09
Location: New York
Has thanked: 5 times
Been thanked: 40 times

Re: SVN

Postby DennisBergkamp » 15 Oct 2009, 19:52

Rob,

I don't fully understand how it all works either, I'm not sure if we have the same kind of plugin installed (I think I downloaded Subclipse, there's a few different ones).

This is what I do know:
For me, when you right click on your project, go to Team. There you will see the three major options at the top "Synchronize with Repository", "Commit" and "Update". Commit will basically upload all your changes to the Repository, whereas "Update" will (download and) update your local version with the changes made on the repository. Synchronize is a combination of both, it will upload (commit) the repository with your changes and it will update your local version with changes made on the Repository by other people.
I'm sure if there's conflicts, some diff tool will show both different versions of the .java file, and a manual selection will have to be made to finalize the process.
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: SVN

Postby silly freak » 15 Oct 2009, 20:13

Import.../SVN/Checkout Project from SVN

check out the MTGForgeNew folder...

I have a question... I was able to check out the sources, but they got directly into my project folder. do you have an idea how to get it in my source folder?
___

where's the "trust me, that will work!" switch for the compiler?
Laterna Magica - blog, forum, project, 2010/09/06 release!
silly freak
DEVELOPER
 
Posts: 598
Joined: 26 Mar 2009, 07:18
Location: Vienna, Austria
Has thanked: 93 times
Been thanked: 25 times

Re: SVN

Postby DennisBergkamp » 15 Oct 2009, 20:39

Hmm, that I don't know. There must be some way to import them into a subdirectory ?
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: SVN

Postby silly freak » 15 Oct 2009, 21:18

maybe the easier way is to put an additional "src" superfolder in the SVN, so the standard checkout works
___

where's the "trust me, that will work!" switch for the compiler?
Laterna Magica - blog, forum, project, 2010/09/06 release!
silly freak
DEVELOPER
 
Posts: 598
Joined: 26 Mar 2009, 07:18
Location: Vienna, Austria
Has thanked: 93 times
Been thanked: 25 times

Re: SVN

Postby DennisBergkamp » 15 Oct 2009, 21:32

Ok, currently my local source is in some directory \Forge2\ ("MTGForgeNew" is actually the project name I used in Eclipse).
Would moving all the stuff into \Forge2\src\ work?
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: SVN

Postby Rob Cashwalker » 15 Oct 2009, 21:34

maybe merging manually wouldn't be too bad after all? #-o
The Force will be with you, Always.
User avatar
Rob Cashwalker
Programmer
 
Posts: 2167
Joined: 09 Sep 2008, 15:09
Location: New York
Has thanked: 5 times
Been thanked: 40 times

Re: SVN

Postby DennisBergkamp » 15 Oct 2009, 23:37

Heh, I dunno.
One thing I really do like about this SVN thing is that I can quickly release up-to-date source with one single click.

But I'm not sure, maybe in practice it's a big pain to use when a lot of people start updating/changing code (I'm not really sure how to revert to previous versions... I guess there must be ways to revert an entire project, or just revert a file or a small subset of files).
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: SVN

Postby zerker2000 » 15 Oct 2009, 23:59

DennisBergkamp wrote:So did you guys email rares about getting "committer" privileges?
I sent a PM... I don't see how that would help, Eclipse is currently at 0% completed "checking out MTGForgeNew", and hasn't asked for any account details yet :?.

EDIT:Ok, it finally fetched the code, and has asked for a password when I tried to commit. I do hope rares checks his PMs often :).
O forest, hold thy wand'ring son
Though fears assail the door.
O foliage, cloak thy ravaged one
In vestments cut for war.


--Eladamri, the Seed of Freyalise
zerker2000
Programmer
 
Posts: 569
Joined: 09 May 2009, 21:40
Location: South Pasadena, CA
Has thanked: 0 time
Been thanked: 0 time

Re: SVN

Postby frwololo » 16 Oct 2009, 01:18

DennisBergkamp wrote:maybe in practice it's a big pain to use when a lot of people start updating/changing code
It's always painful to work on the same source code with other people. But trust me, SVN makes it way easier than doing it by hand.

You guys seem to have issues mostly because you use Eclipse, which assumes that the source files will be in a specific structure/set of folders.
I use tortoiseSVN, which is integrated in the menus of windows, and I have no such issue.

Of course, getting a password is another issue.
frwololo
DEVELOPER
 
Posts: 265
Joined: 21 Jun 2008, 04:33
Has thanked: 0 time
Been thanked: 3 times

Re: SVN

Postby zerker2000 » 16 Oct 2009, 01:26

frwololo wrote:I use tortoiseSVN, which is integrated in the menus of windows, and I have no such issue.
Which could be problematic if some of us happened to use e.g. Linux.
O forest, hold thy wand'ring son
Though fears assail the door.
O foliage, cloak thy ravaged one
In vestments cut for war.


--Eladamri, the Seed of Freyalise
zerker2000
Programmer
 
Posts: 569
Joined: 09 May 2009, 21:40
Location: South Pasadena, CA
Has thanked: 0 time
Been thanked: 0 time

Re: SVN

Postby Rob Cashwalker » 16 Oct 2009, 03:48

But then you wouldn't have any problem in the first place - Linux has SVN from the git-go.
The Force will be with you, Always.
User avatar
Rob Cashwalker
Programmer
 
Posts: 2167
Joined: 09 Sep 2008, 15:09
Location: New York
Has thanked: 5 times
Been thanked: 40 times

Re: SVN

Postby zerker2000 » 16 Oct 2009, 04:42

Yes, however eclipse functionality on Linux is no better than on any other OS :).
O forest, hold thy wand'ring son
Though fears assail the door.
O foliage, cloak thy ravaged one
In vestments cut for war.


--Eladamri, the Seed of Freyalise
zerker2000
Programmer
 
Posts: 569
Joined: 09 May 2009, 21:40
Location: South Pasadena, CA
Has thanked: 0 time
Been thanked: 0 time

Re: SVN

Postby zerker2000 » 16 Oct 2009, 06:38

The svn code doesn't seem to have Multi-Color generation working as it should: an error pops up when I try to use it, and Gui_NewGame is complaining about GenerateConstructedMultiColorDeck not being resolved as a type, which would explain such behavior. Are we missing an import or class file?
O forest, hold thy wand'ring son
Though fears assail the door.
O foliage, cloak thy ravaged one
In vestments cut for war.


--Eladamri, the Seed of Freyalise
zerker2000
Programmer
 
Posts: 569
Joined: 09 May 2009, 21:40
Location: South Pasadena, CA
Has thanked: 0 time
Been thanked: 0 time

Re: SVN

Postby DennisBergkamp » 16 Oct 2009, 15:38

Ah this is possible, I don't think I've updated the SVN quite as recently (the source that comes with the 10/15 beta is actually newer).
I'll fix some of the bugs reported, and update the SVN.
Last edited by DennisBergkamp on 16 Oct 2009, 17:03, edited 1 time in total.
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: mariahcarey and 32 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 33 users online :: 1 registered, 0 hidden and 32 guests (based on users active over the past 10 minutes)
Most users ever online was 9298 on 10 Oct 2025, 12:54

Users browsing this forum: mariahcarey and 32 guests

Login Form