1. Erick Bergsma
  2. PowerBuilder
  3. Thursday, 17 January 2019 18:06 PM UTC

I've had the misfortune of a corrupt hard-drive, and have lost everything.

Being a seasoned developer, I have backups.

New harddrive, re-installed PB and the SourceCode I was working on.

The PBW however, is not connected to SVN. Properties tab shows None for Source Control.

I'm in the middle of a fairly large project, and I have several changed objects on my machine, that are not in the repository yet.  So I'm looking to simply re-connect the SVN, and then I can deal with the changed objects, but I can't find a way to do that.

If I try to Connect to Worksspace, it want to overwrite all my changes, which I can't do right now, since its all untested

it also comes back with the message " SVN client error code: The specified path is already a working copy for a different URL."

is there a nice way to get back to where I was??

Accepted Answer
Roland Smith Accepted Answer Pending Moderation
  1. Thursday, 17 January 2019 18:22 PM UTC
  2. PowerBuilder
  3. # Permalink

If you have another developer on the project, open Regedit on their machine and find this key:

HKEY_CURRENT_USER\Software\Sybase\PowerBuilder\17.0\Workspace

Under that is the workspace file name (with \ replaced with $). Then under that will be a key holding the source control settings. Export it to a file and import it on your machine. First make sure the workspace file path is correct.

 

 

Comment
There are no comments made yet.
Erick Bergsma Accepted Answer Pending Moderation
  1. Monday, 9 December 2019 12:54 PM UTC
  2. PowerBuilder
  3. # 1

Thanks for all who contributed ideas.

In the end, it was a corrupt SVN / PowerBuilder implementation.

We had to Uninstall SVN and PowerBuilder, and then go through the registry to clear out entries  (hate that "UnInstall" sometimes doesn't clean out the registry)

Once everything is re-installed...Connect to Workspace worked as expected.

 

 

Comment
There are no comments made yet.
Chris Tillman Accepted Answer Pending Moderation
  1. Thursday, 14 March 2019 18:02 PM UTC
  2. PowerBuilder
  3. # 2

There is a solution, but it's totally non-obvious and buried on Appeon's site in the SVN/Git introductions with R1 or R2.

Open Powerbuilder with no workspace. You might have to de-select "Automatically open workspace" to allow this.

Right click on the top node, and you will see "Connect to Workspace...". Point it to an empty folder, and it will pull down everything you currently have in SVN to the blank folder, including rebuilding the PBLs as they would be coming from source.

Then re-work your previously changed but non-committed source into that folder and workspace. You can overwrite source files, but may have to refresh things for Powerbuilder to pull them into the new PBLs, and sometimes conflicts or PBL corruption can arise. Or you can open two PB instances, one on your old code and one on the fresh one, and copy within PB.

Comment
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Friday, 18 January 2019 14:01 PM UTC
  2. PowerBuilder
  3. # 3

Copy the pbl files containing your work in progress to a safe place outside the folder structure where you keep PowerBuilder files.

Then follow the new developer process which I believe is documented somewhere. Then once you a current with everything, copy the pbl files back.

Comment
There are no comments made yet.
Erick Bergsma Accepted Answer Pending Moderation
  1. Friday, 18 January 2019 13:53 PM UTC
  2. PowerBuilder
  3. # 4

Nothing at all in our Registry with SourceControlVersion2

Nothing with AppenOverWrite

Nothing where the Data is Subversion (SVN)

 

Very strange...

Comment
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Thursday, 17 January 2019 20:26 PM UTC
  2. PowerBuilder
  3. # 5

See the attached image

 

Attachments (1)
Comment
There are no comments made yet.
Erick Bergsma Accepted Answer Pending Moderation
  1. Thursday, 17 January 2019 19:29 PM UTC
  2. PowerBuilder
  3. # 6

REGEDIT...

Do you mean MRUList...the high-lighted one...

...and I change the 0 item?

 

Comment
  1. Roland Smith
  2. Thursday, 17 January 2019 20:15 PM UTC
That is the Most Recently Used list. There should be a registry folder, the name is SourceControlVersion2 or something similar. I don't have access to my laptop right now to check.
  1. Helpful
There are no comments made yet.
Erick Bergsma Accepted Answer Pending Moderation
  1. Thursday, 17 January 2019 19:19 PM UTC
  2. PowerBuilder
  3. # 7

Thanks Roland.

These corporate machines are locked down pretty tight.

I'll need someone with Admin access to give that a whirl.

Comment
There are no comments made yet.
Erick Bergsma Accepted Answer Pending Moderation
  1. Thursday, 17 January 2019 19:17 PM UTC
  2. PowerBuilder
  3. # 8

Hi Mariano...

Yes... I have that option.

When I click it, it wants to re-add all my objects (they appear as (Modified)), but I don't want it to make any changes to SVN Repository.

I just want it to reconnect.

I tried just putting a CheckMark on the PBW, in hopes that would work, but that when I got the message...

 

" SVN client error code: The specified path is already a working copy for a different URL."

 

 

Comment
There are no comments made yet.
Mariano Collado @Appeon Accepted Answer Pending Moderation
  1. Thursday, 17 January 2019 18:27 PM UTC
  2. PowerBuilder
  3. # 9

Hi Eric,

Please Open PowerBuilder 2017 and right click on your Workspace.

Does the option "Add to Source Control" appear?

Please refer to the attached screenshot.

Mariano C.

Attachments (1)
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.