It is currently 07 Sep 2025, 20:19
   
Text Size

does dmca push us further toward distributed rev control?

Post MTG Forge Related Programming Questions Here

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

Re: does dmca push us further toward distributed rev control

Postby Snacko » 03 Aug 2011, 15:15

soft reset is mostly used to back out some commits while leaving your files as is (local branches)

if you do it on a tracking branch and push it you end up with a new HEAD and a detached HEAD (the problem you posted about in other thread);

Personally I don't use egit much as I prefer to use command line. I also prefer to use p4merge for merging so this only from description what those features should do:
Fetch -> download new changes (doesn't merge them)
Merge -> merge a branch into your current checkout branch; you use this if you only fetch
Pull -> fetch + automatic merge
Team Synchronize -> I never used this, but it shows the differences between what you have and a chosen git/svn/other vcs revision; also shows conflicts

Automatic merge occurs when you pull on a branch that is a tracking branch and has commits that diverged the history. You can read more http://www.kernel.org/pub/software/scm/ ... -pull.html as with other git documentation.
Snacko
DEVELOPER
 
Posts: 826
Joined: 29 May 2008, 19:35
Has thanked: 4 times
Been thanked: 74 times

Re: does dmca push us further toward distributed rev control

Postby Rob Cashwalker » 03 Aug 2011, 16:41

Dave,

Goblin Hero put up an SVN and would like us to at least try it, to make sure its operational. Commit privileges will be tied to your forum username and password, but I'm waiting to find out how to add users. Once I have all that, I'll post the details, could you then try to make an upload based on our git + svn history?
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: does dmca push us further toward distributed rev control

Postby jendave » 03 Aug 2011, 18:10

Rob Cashwalker wrote:Dave,

Goblin Hero put up an SVN and would like us to at least try it, to make sure its operational. Commit privileges will be tied to your forum username and password, but I'm waiting to find out how to add users. Once I have all that, I'll post the details, could you then try to make an upload based on our git + svn history?
Sure, what is the SVN repo url? You can PM me.
jendave
 
Posts: 307
Joined: 01 Jun 2008, 07:19
Has thanked: 8 times
Been thanked: 21 times

Re: does dmca push us further toward distributed rev control

Postby Braids » 04 Aug 2011, 14:19

invalid LOC header (bad signature) . . .
Sounds like you have a corrupt miglayout jar.

try removing the "C:\Users\jeff\.m2\repository\com\miglayout" directory. Run 'mvn -U clean install' That should redownload it. . . .
i have added this fix to the bottom of the Troubleshooting section of the wiki page. please read the instructions to see if they are correct. http://www.slightlymagic.net/wiki/Forge:How_to_Get_Started_Developing_Forge#Troubleshooting
"That is the dumbest thing I've ever seen." --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something. ;)
User avatar
Braids
Programmer
 
Posts: 556
Joined: 22 Jun 2011, 00:39
Location: Unknown. Hobby: Driving myself and others to constructive madness.
Has thanked: 1 time
Been thanked: 1 time

Re: does dmca push us further toward distributed rev control

Postby jendave » 04 Aug 2011, 14:32

Braids wrote:
invalid LOC header (bad signature) . . .
Sounds like you have a corrupt miglayout jar.

try removing the "C:\Users\jeff\.m2\repository\com\miglayout" directory. Run 'mvn -U clean install' That should redownload it. . . .
i have added this fix to the bottom of the Troubleshooting section of the wiki page. please read the instructions to see if they are correct. http://www.slightlymagic.net/wiki/Forge:How_to_Get_Started_Developing_Forge#Troubleshooting
Looks good. Thanks!
jendave
 
Posts: 307
Joined: 01 Jun 2008, 07:19
Has thanked: 8 times
Been thanked: 21 times

Re: does dmca push us further toward distributed rev control

Postby Braids » 04 Aug 2011, 17:56

jendave wrote:
Braids wrote:. . . i have added this fix to the bottom of the Troubleshooting section of the wiki page. please read the instructions to see if they are correct. http://www.slightlymagic.net/wiki/Forge:How_to_Get_Started_Developing_Forge#Troubleshooting
Looks good. Thanks!
you're welcome, and thank you for checking them.

transitive thanks also go to Chris H., who reminded me that this should probably go into the document.
"That is the dumbest thing I've ever seen." --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something. ;)
User avatar
Braids
Programmer
 
Posts: 556
Joined: 22 Jun 2011, 00:39
Location: Unknown. Hobby: Driving myself and others to constructive madness.
Has thanked: 1 time
Been thanked: 1 time

Re: does dmca push us further toward distributed rev control

Postby Braids » 06 Aug 2011, 02:59

Snacko wrote:Automatic merge occurs when you pull on a branch that is a tracking branch and has commits that diverged the history.
unfortunately, this is not the case with the current version of EGit. i don't know what happened or what exactly is wrong, but if there is only a single conflicting file between the local repository and the remote, both Pull and Merge fail with less than helpful error messages. Team Synchronization is no help; in fact, it tends to perform partial pulls, which get even more confusing. (that's how i learned that hard resets can vaporize local commits. scary.)

the only way i found to force EGit to do the right thing was to use rebase. however, my directions cause this rebase to rewrite local commits, not the remote ones. the instructions are at http://www.slightlymagic.net/wiki/Forge:How_to_Get_Started_Developing_Forge#My_Pull_Failed , if you care to review them. they're very short.

the following was the result of a successful rebase involving divergent changes to CHANGES.txt: https://www.gitorious.org/cardforge/cardforge/commit/e335ef812ba326f66fbe337e5773ef8d95364ca5
"That is the dumbest thing I've ever seen." --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something. ;)
User avatar
Braids
Programmer
 
Posts: 556
Joined: 22 Jun 2011, 00:39
Location: Unknown. Hobby: Driving myself and others to constructive madness.
Has thanked: 1 time
Been thanked: 1 time

Re: does dmca push us further toward distributed rev control

Postby jendave » 06 Aug 2011, 03:15

Rob,

I think the slightlymagic svn repo will be ready by tomorrow morning. The upload is happening now and it will take many hours. I will also have to manually resolve a lot of commits :evil: . Once it is fully up, I'll modify the the pom.xml to be able to do releases, snapshots and the reports/site. I will want to move as quickly as possible off of gitorious because each new checkin over there is a bit of work for me.
jendave
 
Posts: 307
Joined: 01 Jun 2008, 07:19
Has thanked: 8 times
Been thanked: 21 times

Re: does dmca push us further toward distributed rev control

Postby Rob Cashwalker » 06 Aug 2011, 13:24

Dave, shouldn't we lock down the gitorious repo? Or is it still a matter of testing slightlymagic beforehand?

edit - just for kicks, I pulled the SVN repo from here, and it is going a lot faster than google ever did.. so much for cloud computing...
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: does dmca push us further toward distributed rev control

Postby Braids » 06 Aug 2011, 13:47

jendave wrote:Rob,

I think the slightlymagic svn repo will be ready by tomorrow morning. The upload is happening now and it will take many hours. I will also have to manually resolve a lot of commits :evil: . Once it is fully up, I'll modify the the pom.xml to be able to do releases, snapshots and the reports/site. I will want to move as quickly as possible off of gitorious because each new checkin over there is a bit of work for me.
`
so, this has gone from "let's see how an SVN repository in Germany goes" to "let's ditch gitorious as fast as possible?"
"That is the dumbest thing I've ever seen." --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something. ;)
User avatar
Braids
Programmer
 
Posts: 556
Joined: 22 Jun 2011, 00:39
Location: Unknown. Hobby: Driving myself and others to constructive madness.
Has thanked: 1 time
Been thanked: 1 time

Re: does dmca push us further toward distributed rev control

Postby jendave » 06 Aug 2011, 16:02

Rob Cashwalker wrote:Dave, shouldn't we lock down the gitorious repo? Or is it still a matter of testing slightlymagic beforehand?

edit - just for kicks, I pulled the SVN repo from here, and it is going a lot faster than google ever did.. so much for cloud computing...
I am still cautious about the performance. The current upload is going *very* slowly. It has been running about 12 hours and it is only 5500 revisions in (out of ~11000).

I will then perform the manual conflict resolutions, then we can determine our direction on svn or git. Then I can do a final pull from git into SVN if SVN is indeed what we choose.
jendave
 
Posts: 307
Joined: 01 Jun 2008, 07:19
Has thanked: 8 times
Been thanked: 21 times

Re: does dmca push us further toward distributed rev control

Postby Braids » 06 Aug 2011, 18:33

i think we can resolve a lot of our git issues by using something other than EGit for pulls and merges. eclipse could then be refreshed, and its EGit integration will understand what happened.

i'll hunt for a gui git mac client. there is an official one for linux and windows.
"That is the dumbest thing I've ever seen." --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something. ;)
User avatar
Braids
Programmer
 
Posts: 556
Joined: 22 Jun 2011, 00:39
Location: Unknown. Hobby: Driving myself and others to constructive madness.
Has thanked: 1 time
Been thanked: 1 time

Re: does dmca push us further toward distributed rev control

Postby jendave » 06 Aug 2011, 19:37

Braids wrote:i think we can resolve a lot of our git issues by using something other than EGit for pulls and merges. eclipse could then be refreshed, and its EGit integration will understand what happened.

i'll hunt for a gui git mac client. there is an official one for linux and windows.
I sometimes use GitX and GitBox as my Gui clients.
jendave
 
Posts: 307
Joined: 01 Jun 2008, 07:19
Has thanked: 8 times
Been thanked: 21 times

SmartGit is smart!

Postby Braids » 06 Aug 2011, 23:37

SmartGit is available for Windows, Mac, and Linux. it is free for non-commercial use. and it's made in Germany. talk about coincidence.

it is a little difficult to install, but i documented the windows installation. it works with EGit for the most part. it handles Pull conflicts well. it prefers to be the push mechanism as well. as long as you remember to refresh your Eclipse project after working with SmartGit, things seem just fine.

best part is, because it is multi platform, we only have to write one set of instructions. :) ok, there are deviations in some places.
"That is the dumbest thing I've ever seen." --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something. ;)
User avatar
Braids
Programmer
 
Posts: 556
Joined: 22 Jun 2011, 00:39
Location: Unknown. Hobby: Driving myself and others to constructive madness.
Has thanked: 1 time
Been thanked: 1 time

Quick & dirty SmartGit Guide

Postby Braids » 07 Aug 2011, 00:26

i've written a guide in the wiki on using SmartGit: http://www.slightlymagic.net/wiki/Forge:_How_to_Install_and_Use_SmartGit

it's a first draft. if we go with git, i would like to take the time to incorporate it into our main development guide.


on another note, i posted to the EGit forum about the errors i was getting when i tried to merge. i even made a second post explaining more of the situation. i haven't gotten any useful responses yet. http://www.eclipse.org/forums/index.php/f/48/
"That is the dumbest thing I've ever seen." --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something. ;)
User avatar
Braids
Programmer
 
Posts: 556
Joined: 22 Jun 2011, 00:39
Location: Unknown. Hobby: Driving myself and others to constructive madness.
Has thanked: 1 time
Been thanked: 1 time

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 39 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 39 users online :: 0 registered, 0 hidden and 39 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 39 guests

Login Form