1. Christopher Craft
  2. PowerBuilder
  3. Wednesday, 14 October 2020 23:44 PM UTC

I am in the process of figuring out how GIT will work for our custom department.  Without going into all the details I need a repository for every customer that has custom code. I am wondering if there is a way when adding all the objects to source control for the first time to have it create the Repository too.

Chris Craft

Christopher Craft Accepted Answer Pending Moderation
  1. Friday, 16 October 2020 17:54 PM UTC
  2. PowerBuilder
  3. # 1

Now that I am able to finally push the code I see a message at the bottom of the Login that the Remote Repository must be created first...I went ahead and tried anyway...

Chris (or anyone else) - were you able to create it from here?

Comment
  1. Tom Jiang @Appeon
  2. Monday, 19 October 2020 06:53 AM UTC
You may follow the instructions in the link below to try out this feature.

https://community.appeon.com/index.php/articles-blogs/tutorials-articles/2-powerbuilder/183-powerbuilder-2017-r2-new-feature-git-source-control-support



Note: You don't need to use Push or Pull functions if you just want to work locally. But if you need to work in a team or want to have a backup of your code, you will need a Git Server and create a repository there. And then you can sync your local repository with the server within PB after your add the URL and credentials.
  1. Helpful
  1. Christopher Craft
  2. Monday, 19 October 2020 15:09 PM UTC
We work in a team so we will need to use the Git server. Would it be possible for the final release to have PB create the repository when first adding to source control? We have over a thousand customers with custom code and each one will have their own repository. It would make it much more streamlined if this could be done all in one step within PB.
  1. Helpful
  1. Tom Jiang @Appeon
  2. Tuesday, 20 October 2020 02:56 AM UTC
The repository is already created on your local machine after you add to source control. You just need to create a bare repository on the Git Server so you can push or sync your local repository to the server.

Each Git repository has a unique link and you can't nest one Git repository inside another. So I don't think there is a way to automate this process. Of course, there might be someone who may have a solution for this but I am quite sure it is not something that can be implemented in PowerBuilder IDE itself.
  1. Helpful
There are no comments made yet.
Christopher Craft Accepted Answer Pending Moderation
  1. Thursday, 15 October 2020 21:08 PM UTC
  2. PowerBuilder
  3. # 2

I just noticed something - your workspace has a different icon than mine...

 

So I deleted the workspace and went into 'New' to create one from scratch...

 

But after it comes back...

It goes back and I still do not have an option to 'Add to Source Control'! What is going on?!?!

Chris

Comment
  1. Chris Pollach @Appeon
  2. Friday, 16 October 2020 16:18 PM UTC
And who said that you can't teach an old dog new tricks ... LOL ... oh wait a minute - I'm an old dog too! ;-)

FYI: There is an enhancement ticket in the support system to add SCC to the Library Painter.

Hmmm .. the System tree should display the new Workspace icon. It's been that was since PB 2017Rx for me on W10.
  1. Helpful
  1. Christopher Craft
  2. Friday, 16 October 2020 16:27 PM UTC
What the ?!?. So after testing the Git add to source I then closed my PB because I had to go back to my development workspace to check on something and poof! now the icon is correct. This makes no sense. Whatever, its working now so I will carry on. Thanks for all the input!
  1. Helpful
  1. Chris Pollach @Appeon
  2. Friday, 16 October 2020 16:34 PM UTC
You need to just take a break. Here's a suggestion for you ... https://www.chriscraft.com

I wish that I could afford one of your boats ... LOL! ;-)
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 15 October 2020 20:36 PM UTC
  2. PowerBuilder
  3. # 3

Hi Chris;

  That is the same edition that I am using to test GIT SCC ...

Chris: Does this work on any other developers IDE installation / machine?

Regards .. Chris

 

Comment
There are no comments made yet.
Christopher Craft Accepted Answer Pending Moderation
  1. Thursday, 15 October 2020 16:01 PM UTC
  2. PowerBuilder
  3. # 4

Yes - Each customer has its own workspace. Since we have over a thousand customers with custom code I don't want a single repository to bring in all those customers.  But as new customers come on I want it to be simple to have a developer add all the code without having someone create the repository first.

Chris Craft

Comment
  1. Christopher Craft
  2. Thursday, 15 October 2020 19:04 PM UTC
...running PB 2017 R3 1915
  1. Helpful
  1. Chris Pollach @Appeon
  2. Thursday, 15 October 2020 20:20 PM UTC
Hmmm ... its working on my PB 2017 R3 build 1915 (RHMB on WS).

What Edition of PB do you have?
  1. Helpful
  1. Christopher Craft
  2. Thursday, 15 October 2020 20:25 PM UTC
Universal. This is very frustrating. I can't get past the first step. Can you find out from a developer why this would not show?
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 15 October 2020 15:17 PM UTC
  2. PowerBuilder
  3. # 5

Hi Chris;

   Each WorkSpace can point to a different GIT repository. Do all your various customer's have their own WS for each variation of the same PB App?

Regards ... Chris

Comment
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.