Git problems using amend commit / branches / merging

Discuss all problems you have with Servoy here. It might help to mention the Servoy version and Operating System version you are using

Git problems using amend commit / branches / merging

Postby deezzub » Thu Jul 31, 2014 1:03 pm

I have the following strange behaviors.:


The second case leads me to assume it is a Servoy related problem, because:

- I used EGit to commit & push to server. -> No error (Unstaged & Staged area in EGit empty)
- Then I switched to branch master using Git command line
- Then I tried to merge using Git command line -> Error because committed / pushed content in back, so no EGit was involved in this case

Also today I used the command line to checkout / merge a branch using the Git command line and Servoy was closed. After starting Servoy I had a lot of changed content in the EGit "Staged" and "Unstaged" area. So this lets me also assume it is a Servoy related problem, but I'm unsure. Also I think Eclipse and EGit are widely used, so these behavior would be noticed, cause these behavior is not rare.

This behavior is really a blocker for using Servoy/Egit branches.

I really need help, to clarify where the problems lies.
deezzub
 
Posts: 328
Joined: Tue May 28, 2013 3:02 pm
Location: Oldenburg, Germany

Re: Git problems using amend commit / branches / merging

Postby deezzub » Thu Jul 31, 2014 9:28 pm

deezzub
 
Posts: 328
Joined: Tue May 28, 2013 3:02 pm
Location: Oldenburg, Germany

Re: Git problems using amend commit / branches / merging

Postby jcompagner » Tue Aug 05, 2014 9:51 am

first i want to stress out here, never use amend to previous commit if you already pushed the commit to a remote server!
That's really a no go. Because you alter history then for other persons that already seen your pushed commit.

Als the second one, if egit is suddenly saying that you have u changed files, what does your staging view say? It should say that there is a file changed.
If so what is the change that you see?
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Git problems using amend commit / branches / merging

Postby deezzub » Tue Aug 05, 2014 7:23 pm

jcompagner wrote:first i want to stress out here, never use amend to previous commit if you already pushed the commit to a remote server!
That's really a no go. Because you alter history then for other persons that already seen your pushed commit.


Ok, that was the only one. ;)

jcompagner wrote:Als the second one, if egit is suddenly saying that you have u changed files, what does your staging view say? It should say that there is a file changed.
If so what is the change that you see?


The staging view was showing the changed file, but that was the change that I have committed before I switched the branch. See my question at Stackoverflow: Committed content back in EGit “Unstaged Changes” after branch switch
Last edited by deezzub on Tue Aug 05, 2014 8:01 pm, edited 2 times in total.
deezzub
 
Posts: 328
Joined: Tue May 28, 2013 3:02 pm
Location: Oldenburg, Germany

Re: Git problems using amend commit / branches / merging

Postby deezzub » Tue Aug 05, 2014 7:41 pm

Now I have also the duplicate form found problem again.:

2014-08-05_19_27_50-Servoy_Developer_duplicate_form_after_branch_switch.png
Duplicate form found after branch switch
2014-08-05_19_27_50-Servoy_Developer_duplicate_form_after_branch_switch.png (9.53 KiB) Viewed 7724 times


The form is there really twice in Servoy, but only once in filesystem.

2014-08-05_19_47_18-Duplicate_form_error_filesystem.png
Duplicate form in Servoy, but not on filesystem
2014-08-05_19_47_18-Duplicate_form_error_filesystem.png (86.47 KiB) Viewed 7724 times


Today I deleted form "br_boss_buha_faktura_paymentInfo" renamed form "br_boss_buha_faktura_paymentInfo_dtl" to "br_boss_buha_faktura_paymentInfo" and committed and pushed it to branch "buha_faktura_simba". I worked a lot the day, closed Servoy openend Git terminal window and wanted to checkout the master branch. That was not possible, so I stashed all my changes, switch then to the master branch. I applied the stashed changes to my master branch and resolved the merge conflicts. Then I committed the desired file to the master branch and pusehd to the server. Then I wanted to checkout the buha_faktura_simba branch. That was not possible, so I stashed all my changes, then switched to the buha_faktura_simba branch. Then I switched again to the master branch, because I realized that I need to export the master branch solution for the application server. Then I opened Servoy and exported the solution for the server. The I swicthed back to buha_faktura_simba.

=> Now I have the duplicate form problem.

Maybe the problem was before, but I realized the duplicate form problem after I tried to start the solution after branch switch in the last step.
deezzub
 
Posts: 328
Joined: Tue May 28, 2013 3:02 pm
Location: Oldenburg, Germany

Re: Git problems using amend commit / branches / merging

Postby deezzub » Wed Aug 06, 2014 7:19 pm

Today I had the following case.:

1. worked in a branch, created 2 new valuelists and coded in some existing files.
2. committed & pushed all the stuff the branch / server
3. merged the master branch into this branch
4. pushed to server
5. switched to master branch
6. merged remote master into local master branch
7. pushed to remote master branch
8. started Servoy again => then I have 2 empty valuelist files in my staging area, exactly the files that I committed before the other branch
9. closed Servoy
10. in Git console showed diff using git diff & git diff --staged => there are no differences



2014-08-06_19_09_55-Git_Servoy_empty_valuelist_error.png
Empty valuelist error
2014-08-06_19_09_55-Git_Servoy_empty_valuelist_error.png (49.78 KiB) Viewed 7670 times


1. - 2. & 8. - 9. in Servoy / EGit
3. - 7. & 10. in Git console
deezzub
 
Posts: 328
Joined: Tue May 28, 2013 3:02 pm
Location: Oldenburg, Germany

Re: Git problems using amend commit / branches / merging

Postby jcompagner » Thu Aug 07, 2014 8:58 am

if you have a sequence that is reproducible then make a case for that
Because it could be that the internal in memory representation is not always fully in sync when you constantly are switching between branches
We should get deletes and inserts of files from the system and update the persist model that's in memory
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Git problems using amend commit / branches / merging

Postby deezzub » Thu Aug 07, 2014 10:43 am

deezzub wrote:Today I had the following case.:

1. worked in a branch, created 2 new valuelists and coded in some existing files.
2. committed & pushed all the stuff the branch / server
3. merged the master branch into this branch
4. pushed to server
5. switched to master branch
6. merged remote master into local master branch
7. pushed to remote master branch
8. started Servoy again => then I have 2 empty valuelist files in my staging area, exactly the files that I committed before the other branch
9. closed Servoy
10. in Git console showed diff using git diff & git diff --staged => there are no differences



2014-08-06_19_09_55-Git_Servoy_empty_valuelist_error.png


1. - 2. & 8. - 9. in Servoy / EGit
3. - 7. & 10. in Git console


Yesterday, I applied a stash, then I had a merge conflict, that I resolved today, after moving the resolved file to the staged area in EGit, the empty valuelist files are gone from the EGit unstaged area.

jcompagner wrote:if you have a sequence that is reproducible

I think it is obvious, if you work with branches. This strange behavior, I have very often. What I have done, can you see above. I do not know what else I can do to make it reproducible. You simply need to try it yourself, I'm sure sooner or later you will see that.

SVY-7012: Git problems using commit / branches / merging
deezzub
 
Posts: 328
Joined: Tue May 28, 2013 3:02 pm
Location: Oldenburg, Germany

Re: Git problems using amend commit / branches / merging

Postby david » Fri Aug 08, 2014 10:28 pm

Slightly off-topic: Tower 2 (http://www.git-tower.com/) is the first GUI git client that we're quite impressed with. Noticeably better than any other git setup we've tried.
David Workman, Kabootit

Image
Everything you need to build great apps with Servoy
User avatar
david
 
Posts: 1727
Joined: Thu Apr 24, 2003 4:18 pm
Location: Washington, D.C.

Re: Git problems using amend commit / branches / merging

Postby jcompagner » Mon Aug 11, 2014 10:38 am

what a weird website, if i click on download, i get a zip, but thats only a mac
Thats something they really don't mention at the first sight, thats mac only..
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Git problems using amend commit / branches / merging

Postby ROCLASI » Mon Aug 11, 2014 11:06 am

Hi Johan,

I thought the screenshots on that same page made it pretty obvious though ;)
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: Git problems using amend commit / branches / merging

Postby jcompagner » Mon Aug 11, 2014 11:35 am

i have seen more sites that uses screenshot from a mac to demonstrate the product, but those still have also a windows or other platform support.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Git problems using amend commit / branches / merging

Postby ROCLASI » Mon Aug 11, 2014 11:40 am

I guess it's time to dust off your Mac then ;)
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: Git problems using amend commit / branches / merging

Postby ROCLASI » Mon Aug 11, 2014 12:27 pm

By the way,

You could also check out SourceTree from Atlassian. They have a nice Git/Mercurial client that is for Mac and Windows.
Not as nice as Tower2 but still pretty nice and it's also free.

http://www.sourcetreeapp.com
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: Git problems using amend commit / branches / merging

Postby deezzub » Mon Aug 11, 2014 3:25 pm

David, Robert, do you use Servoy with Git and branches?
deezzub
 
Posts: 328
Joined: Tue May 28, 2013 3:02 pm
Location: Oldenburg, Germany

Next

Return to Discuss possible Issues and Bugs

Who is online

Users browsing this forum: No registered users and 5 guests