Search code examples
tfstfs-2015powerbuilder

Is it possible that only one user can checkout an object on powerbuilder?


I have a project and i want to have more control with the changes. For example:

Tom have w_principal with checkout Scott need to make changes to the w_principal file.

I want you not to be able to checkout before tom checkin


Solution

  • According to this article (Checking objects out from source control), by default when you check out an object in PowerBuilder, it will locks the object in the archive so that no one else can modify it—unless your source control system permits multiple user checkouts

    For TFVC, in Visual Studio we can set the lock type to prevent others check-out if using the server workspace.

    So, you can check if there's the context options/ways in PowerBuilder to set the lock types against the server workspace. If no such options, then I'm afraid it's not supported.

    BTW, you can take a look at below articles for “best practices” suggestions for using PowerBuilder in source control:

    enter image description here