1. Roland Smith
  2. PowerBuilder
  3. Thursday, 28 February 2019 16:09 PM UTC

What exactly does the Commit command do and how does the IDE know to show checkmark as the scc status?

The best I can figure, it exports updated objects to ws_objects which is the 'local repository'. If that is true, how does the IDE tell whether it should show the green checkmark or the green dot?

In PBSearch when you update an object, it updates the object in the PBL and the source file under ws_objects. Now I am wondering if the file update is inadvertently performing a commit as well.

 

Roland Smith Accepted Answer Pending Moderation
  1. Saturday, 2 March 2019 21:38 PM UTC
  2. PowerBuilder
  3. # 1

After posting this I discovered that there is a hidden folder .git which is the Git local repository. Here is a good explanation:

https://medium.freecodecamp.org/understanding-git-for-real-by-exploring-the-git-directory-1e079c15b807

This all started when a user of PBSearch reported that updating objects in PBSearch was not causing the checkmark to appear. As it turned out, they had auto update turned off and were using an older version that didn't update the ws_objects folder.

 

Comment
There are no comments made yet.
Bruce Armstrong Accepted Answer Pending Moderation
  1. Saturday, 2 March 2019 21:16 PM UTC
  2. PowerBuilder
  3. # 2

>>The IDE shows the green check mark if the version you have in your working copy is exactly the same
>>as the version in repository.

That's exactly the opposite of the case.  The green check mark means that there ARE differences between what you have in the PowerBuilder IDE and the repository.  If there are no changes, you see the green circle.

I'll have to agree with what Roland said earlier.  When you make changes to an object in the PowerBuilder IDE and save, it updates the ws_objects folder.  PowerBuilder then appears to use that for the determination of whether or not there has been a change to a file.

That means if you make a change directly to the source in the ws_objects folder, you will start seeing checkmarks in the IDE, although the code in the IDE has not been changed and does not contain the change in the ws_objects folder.

Likely, similar to SVN, git is storing the index information in the .git folder it creates in the directories where source code is at.

Comment
There are no comments made yet.
Adrian Hernandez Accepted Answer Pending Moderation
  1. Thursday, 28 February 2019 16:24 PM UTC
  2. PowerBuilder
  3. # 3

Hi Roland

When you perform a commit, you are sending the changes you have made in your working copy to the repository.

The IDE shows the green check mark if the version you have in your working copy is exactly the same as the version in repository.

Comment
  1. Kevin Ridley
  2. Thursday, 28 February 2019 18:19 PM UTC
Roland, I didn't want to try to answer your question because I'm not 100% sure, but I believe that is the case. Once you save, I think it compares vs what's in ws_objects to know whether to display the check mark. Yes I believe ws_objects is considered the local repository because that's where you do your Diff on objects. Hopefully someone more familiar can confirm, but that's my understanding.
  1. Helpful
  1. Kevin Ridley
  2. Thursday, 28 February 2019 19:39 PM UTC
Also, in my first comment, where I say to right click on your repository folder, I probably should've used a different word if we are considering ws_objects as the local repository. You do it on the main "source" folder, not ws_objects. We just use ws_objects for our Diffs.
  1. Helpful
  1. Roland Smith
  2. Friday, 1 March 2019 03:05 AM UTC
The GIT info I could find says that there is an index containing a hash of all the files. The status check compares a hash of the file to the one in the index. If that is the case, where is the PowerBuilder built in GIT provider storing the index.

When you save an object in the IDE, it updates the library and the ws_objects file so it can't be a comparison of those two.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.