I'm using PowerBuilder 2019 R3 Git with Azure DevOps. I'm able to connect from PowerBuilder to Azure DevOps. In Azure DevOps I have three Branches. Master Branch, Development Branch and a Development Feature Branch. On my local PowerBuilder I have a local Master Branch and able to switch to the Azure DevOps Branches that are show origin /master, origin/development and origin/development-feature in PowerBuilder. How can i pull down changes from one of the development branches into my local Master branch to make changes? How can I push my changes from my local Master to Azure Devops Development Branch or Development Feature branch online? Please view attachment for perspective.
- You are here:
- Home
- Q&A
- Q&A
- PowerBuilder
- PowerBuilder 2019 R3 and Azure DevOps setup and Use.
- Cedeno Thompson
- PowerBuilder
- Tuesday, 23 May 2023 21:58 PM UTC
- Wednesday, 24 May 2023 10:34 AM UTC
- PowerBuilder
- # 1
Hi!
How can i pull down changes from one of the development branches into my local Master branch to make changes?
How can I push my changes from my local Master to Azure Devops Development Branch or Development Feature branch online?
Do you really want to pull changes from other branches into your local master and push changes from your master branch to other branches? It's not impossible (using the git cli at least, not sure if/how it would work from within PB) but seems like an unusual workflow. Usually I'd expect changes from a local branch to be pushed to the corresponding remote branch.
Switching to one of the origin/... branches should create a local copy of that branch that you can then commit your work to. When doing a push while on that branch it will push the commits to the corresponding remote version of the branch.
- Tuesday, 30 May 2023 19:59 PM UTC
- PowerBuilder
- # 2
Yes, its from within PowerBuilder. Should I be using command line instead? If there a better route to work with Azure DevOps?
- Benjamin Gaesslein
- Wednesday, 31 May 2023 07:46 AM UTC
I personally prefer the command line for pretty much everything because PBs git integration is so very limited. The only PB source control command you actually need in that case is "Refresh" to load the current source files from the ws_objects folder into the PBLs.
-
Helpful Loading... Helpful 0
- Friday, 2 June 2023 05:31 AM UTC
- PowerBuilder
- # 3
Hi Cendeno,
In the current PowerBuilder design, if the Azure DevOps Development Branch does not exist locally, you need to first right-click the local PBW object and execute the menu "Git Create Branch" to create the development branch based on origin/development or origin/development-feature and name it development or development-feature, and then right-click and use the menu Git Switch Branch to switch to the development branch. After that, all your operations such as modification and submission will be performed against the development branch.
As Benjamin said, PowerBuilder is not as flexible as TortoiseGit in creating and switching branches (PowerBuilder needs two steps to complete this), and we will consider optimizing it in a future release.
Regards,
Kitty
- Cedeno Thompson
- Friday, 2 June 2023 18:03 PM UTC
-
Helpful Loading... Helpful 0
- kitty he @Appeon
- Monday, 5 June 2023 08:31 AM UTC
I don’t see any problems with the process you mentioned. You should be able to see the modification according to this process. I’m not sure which step is not working for you. It’s best that you create a new ticket and send a screenshot of each step of your operations.
Please open a ticket at https://www.appeon.com/standardsupport/newbug
Regards,
Kitty
-
Helpful Loading... Helpful 0
- Page :
- 1
However, you are not allowed to reply to this question.
---------- Source Control
Switch branch
You are in 'detached HEAD' state. You can look around, Make experimental changes and commit them,
And you can discard any commits you make in this state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, You may do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
Switch branch succeeded (branch: origin/development).
Refresh...
Refresh succeeded.
Refresh completed.
Switch branch completed.
---------- Done Source Control
git checkout development
This will not switch directly to origin/development but create a local branch called "development" instead that tracks origin/development.