Wish Better version control Integration

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
i work with several groups of developers and force them to use Git for all the projects.

the problem arises when a developer changes the Main module (or activity in case of B4A) specifically in the MetaData that is written as the header of the file and the IDE hides.

File ordering and Module Ordering changes between computers (i do not identify a patron for it)

for example, git detects the following as a change:

[file1]=xxx.file
[file2]=xx.file
------
[file1]=xx.file
[file2]=xxx.file

just by opening the IDE this will change may be this order depends on how the user added those files (or modules)

May be if this cannot be fixed, this part of the code could be migrated to the metadata which i already have on ignoring.

Also another issue is with the open Tabs. of course each developer is working on different tabs but if one of us commits the tabs ordering to Git then we all going to have his tabs. it is a nuisance.
 

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
The meta file should be excluded from source control. It includes local and optional data.

yes, i am excluding the meta file, the issue is with the headers of the Main file (file.b4j, file.b4a)
 

Sandman

Expert
Licensed User
Longtime User
+1

I whole-heartedly agree with the contents of this ticket.

(But the thread title leaves a lot to be desired, this is neither necessarily about git nor about actual integration with git. I'm using mercurial, and the contents here is true for me also. And there are other systems out there, beside those two.)
 

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
+1

I whole-heartedly agree with the contents of this ticket.

(But the thread title leaves a lot to be desired, this is neither necessarily about git nor about actual integration with git. I'm using mercurial, and the contents here is true for me also. And there are other systems out there, beside those two.)

Ok, changed
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Also another issue is with the open Tabs. of course each developer is working on different tabs but if one of us commits the tabs ordering to Git then we all going to have his tabs. it is a nuisance.
The tabs ordering is not saved in the main file. Try it.

The assets file are sorted lexicographically so the order should be constant as long as the same files are listed.
 

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
The tabs ordering is not saved in the main file. Try it.
you are right.

The assets file are sorted lexicographically so the order should be constant as long as the same files are listed.
okey thank you i will check that part.

may be then we only need the lexicographic order in modules. please see attached image on how the modules changed.

upload_2019-10-23_11-23-14.png


thank you.
 

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
Do you know what caused this change?

It is a bit odd, i was able to reproduce the issue when changing the date of the computer.

this was on 23
upload_2019-10-24_10-55-57.png


this one on 24
upload_2019-10-24_10-57-35.png


Manually changed this one to 25 (tomorrow for me) and the order changed.
upload_2019-10-25_11-9-42.png


but to be honest. i was not able to reproduce it consistently.

Just opened and save after the date changed at the order changed.
 

Attachments

  • upload_2019-10-24_10-57-5.png
    upload_2019-10-24_10-57-5.png
    12.3 KB · Views: 232
Top