1. Daniel Maak
  2. PowerBuilder
  3. Tuesday, 15 January 2019 15:04 PM UTC

Hi all,

we are migrate our Powerbuilder Projects to GIT with success. All works fine if you do not commit the pbl files.

But we are a little bit confused about the Git Refresh command.

 

How does it work in detail? When knows Powerbuilder which sr* file must be imported or deleted?

 

 

Best regards

Daniel

Tom Jiang @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 16 January 2019 05:27 AM UTC
  2. PowerBuilder
  3. # 1

There are mainly two situations when you need to use the Refresh function. 

  • The first time you do the Connect to Workspace to set up your local workspace. 
  • After you directly modified the source code outside of the PowerBuilder IDE.

The reason behind this is that PowerBuilder IDE doesn't load the code directly from the source code files. It only displays the code saved in the PBLs. Ideally, PowerBuilder should be managing all the synchronization automatically. The reality is that PowerBuilder only pulls the source code in to PBLs when you do a Git Pull. On the other hand, it only exports an object to the source code folder when you save it in the IDE. Synchronization of anything changes happened in other manners have to be taken care of manually. 

So, as PBLs are only uploaded once during Add to Source Control. The later code changes are not reflected in the PBLs on the server. So the first time you download the code from the server, you need to do a manual Refresh.    

Regards,

Tom Jiang

Comment
  1. Daniel Maak
  2. Wednesday, 16 January 2019 08:00 AM UTC
Hi Tom,

all these point that you mention are clear. So if you like to use branches in Git you also have to use the Refresh inside the Powerbuilder IDE because switching branches is not supported yet. But when knows Powerbuilder which source code file must be synchronized back into the pbl file? If I do Refresh again and again and again it seems that Powerbuilder import the same files again and again and again.

  1. Helpful
  1. Tom Jiang @Appeon
  2. Tuesday, 22 January 2019 06:54 AM UTC
Hi Daniel,



Refresh will scan the ws_objects folder and import new objects or update modified objects to PBLs. Some files may be imported again and again because the exported source code may differ from the code in PBLs due to formatting or line breaks, etc. So you can just ignore it and only need to do the Refresh once.



Regards,



Tom Jiang
  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.