1. Arthur Hefti
  2. PowerBuilder
  3. Thursday, 26 July 2018 04:28 AM UTC

Hi

I read the Help about how this would be done and don't think this will work as expected. This is from the help. Sample with additional information. My remarks are in italic.

start session
scc set connect property localprojpath "D:\temp_svn"
;localprojpath must point to the parent directory of ws_objects folder
scc set connect property logfile  "D:\temp_svn\svnorca.log"
scc set connect property logappend false
scc set connect property deletetempfiles "true"
scc connect offline
scc set target "D:\temp_svn\datawindow_json.pbt" "refresh_all importonly"
scc refresh target "3pass"
....
scc close
end session

scc set connect property localprojpath -- Specifies the parent directory of the ws_objects folder. This example supposes ws_objects is located in D:\temp_svn.

-> In a bigger project the pbls are not located in the root folder (but can be copied if needed)
-> It's compile only but the parent folder will contain a lot of other files when we have a project that is not PB only

scc connect offline -- Copies the objects from ws_objects up one level, that is, to the path specified in localprojpath (and it establishes no connection with the server). Objects with the same name in different PBL files will be overwritten.

-> When working with PFC and having an own layer that contains some enhanced objects only the names of the objects in the PFE and the own XXE are equals but the files have different source code.

scc set target -- Refreshes the object list in the PBL file according to the objects copied from ws_objects. The PBG file is no longer used by the SVN/Git solution to map and refresh objects in the PBL file.

-> When adding a new file this must be in the PBL as well otherwise this won't be refreshed. To have the file in the PBL the developer must commit (and push with git) the PBL with gives for sure a conflict in the PBL when other developers do so as well.

Any other thoughts on this?
Arthur

Tom Jiang @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 31 July 2018 05:17 AM UTC
  2. PowerBuilder
  3. # 1

scc set connect property localprojpath -- Specifies the parent directory of the ws_objects folder. This example supposes ws_objects is located in D:\temp_svn.

-> It's compile only but the parent folder will contain a lot of other files when we have a project that is not PB only

  • The process mainly works with the objects inside ws_objects. It doesn’t matter you have other files in the parent folder.  

scc connect offline -- Copies the objects from ws_objects up one level, that is, to the path specified in localprojpath (and it establishes no connection with the server). Objects with the same name in different PBL files will be overwritten.

-> When working with PFC and having an own layer that contains some enhanced objects only the names of the objects in the PFE and the own XXE are equals but the files have different source code.

  • The files got overwritten are only copies. Same as you compile without source control, only one of the objects with the same name is used. BTW, we suggest that you don't use duplicated object names in an application, even when they are in different PBL's.

scc set target -- Refreshes the object list in the PBL file according to the objects copied from ws_objects. The PBG file is no longer used by the SVN/Git solution to map and refresh objects in the PBL file.

-> When adding a new file this must be in the PBL as well otherwise this won't be refreshed. To have the file in the PBL the developer must commit (and push with git) the PBL with gives for sure a conflict in the PBL when other developers do so as well.

  • The process doesn’t concern the PBL's. It directly works with the objects inside ws_objects. Therefore, you only need to make sure the content in ws_objects are the latest. You can incorporate a Git client tool to automate it. 
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.