PowerBuilder and GitHub Questions

1
0
-1

Hello,

I have followed Bruce Armstrong's detailed steps to configure GitHub as my version control with PB 12.5.2. 

I just had a few questions which I posted on my forum here - http://pbgeeks.com/forums/topic/powerbuilder-github/

1. How can I do a Reserved Checkout from GIT? Like in SVN I have the option where if one developer checks out, it cannot be checked out by another.

2. How can I check-in only selected objects in a library? Unlike SVN, Git saves the objects at the PBL level and requires me to do a GIT-PUSH at the library level. Is there a way to pick and choose which objects I would like to PUSH?

Thanks in advance.

Praveen

Question Tags: 

Answers

Bruce Armstrong answered PowerBuilder and GitHub Questions

1
+1
-1

>>1. How can I do a Reserved Checkout from GIT? Like in SVN I have the option where if one developer checks out, it cannot be checked out by another.

That depends on your Git provider.  GitLab Enterprise for example does support a lock option.  https://docs.gitlab.com/ee/user/project/file_lock.html

That's rather rare though, most do not and expect that the individual developer would do a pull and resolve merge issues before doing their own push to the main repository.

>>2. How can I check-in only selected objects in a library? Unlike SVN, Git saves the objects at the PBL level and requires me to do a GIT-PUSH at the library level.
>>Is there a way to pick and choose which objects I would like to PUSH?

The techniques I demonstrated in my articles provide for object based operations through the PowerBuilder IDE.

praveenrajarao_22513's picture

Hello Bruce,

Thanks for finding time to respond to my questions. 

1. I was hoping that would be the case, I will have to check with my GIT admin to see if we can get that lock flag enabled if not already done. Else I will need to educate all developers and have them responsible for "merge" during check-ins. 

2. The techniques in your article allows me to 'check-in' only selected objects via PB IDE. But after that there is another step to do a 'Push' to save changes to the GIT server. That cannot be at object level right? So I will have to check-in only those objects that I would need to PUSH. I can work with that, but was wondering if there is a way to achieve an object-level PUSH. 

Thanks once again. 

Praveen
www.pbgeeks.com

 

hannah.george_20656's picture

I'm wondering if anyone can help - I've successfully used these steps to put a powerbuilder project into VSTS source control. Basically, used these instructions, but substituted the VSTS url in place of github.

The problem I'm experiencing is that once I connect PB to git and register objects, it behaves as-if they are not registered in source control.

Ie,

- Right-click, select add to source control.

- Go to the folder and push to VSTS. I can see changes in VSTS.

- reload PB

- Objects are shown with + icon, and I need to add them to source control again.

All messages indicate success, but PB will not recognize that the objects have been added to source control. Using PB 2017, build 1681.