Excellent news!!!!
--
Melinda Skelton
Sr Principal Support Engineer
Broadcom Agile Operations Division
Office: +1 469-497-4867 | Cell: +1 469-748-2723
5465 Legacy Drive Suite 700 | Plano, TX 75024-3106
melinda.skelton@broadcom.com | broadcom.com
--
This electronic communication and the information and any files transmitted
with it, or attached to it, are confidential and are intended solely for
the use of the individual or entity to whom it is addressed and may contain
information that is confidential, legally privileged, protected by privacy
laws, or otherwise restricted from disclosure to anyone else. If you are
not the intended recipient or the person responsible for delivering the
e-mail to the intended recipient, you are hereby notified that any use,
copying, distributing, dissemination, forwarding, printing, or copying of
this e-mail is strictly prohibited. If you received this e-mail in error,
please return the e-mail to the sender, delete it from your computer, and
destroy any printed copy of it.
Original Message:
Sent: 3/12/2024 2:50:00 PM
From: Jarus Bosman
Subject: RE: Checkout for Concurrent update UDP
Hi Melinda,
I finally had some more time to work on this, and I've now made it work using your hsv suggestion. I simply get the latest in branch and latest in trunk for the Development view using hsv. If the latest branch version < latest trunk version, it means that all changes have been promoted to Production and I exit 0 my script. If latest branch version > trunk version, there are still some changes not in production, so I then check if the current user attempting the checkout is the same as the user that made the branch change (info retrieved from hsv). If the user is the same, exit 0, else exit 1. Since this is pre-link for checkout, checkout will fail if another user made changes. This prevents concurrent update.
I've used awk successfully in parsing the hsv results to retrieve all the fields I need (modify user, package name, version, modified date).
Thank you very much for your help!
Regards,
Jarus
------------------------------
Jarus Bosman
Senior Software Developer
State Information Technology Agency
South Africa
------------------------------
Original Message:
Sent: Nov 28, 2023 09:24 AM
From: Melinda Skelton
Subject: Checkout for Concurrent update UDP
Hello Jarus,
You should check out the "hsv" command. It's similar to the "find versions" tool in Workbench. I think you have to give it a specific state name in your search, but if all new versions originate from the same state, you can search that state and find it no matter where the package is in the lifecycle. Here's where you can read more: hsv Command-Select Version
Let me know if this helps.
Thanks :)
Melinda
------------------------------
Melinda Skelton
[JobTitle]
[CompanyName]
Original Message:
Sent: Nov 27, 2023 07:06 AM
From: Jarus Bosman
Subject: Checkout for Concurrent update UDP
Good day,
This is going to sound counter-intuitive, but I have my reasons.
I need a UDP that will check if an item is currently checked out, or if a branch version exists in any state of a project. It would be helpful if it can also provide the user to whom the item is checked out. In certain circumstances I want to prevent concurrent check-outs. However, I don't want to remove concurrent checkouts altogether for that project.
Kind regards,
Jarus
------------------------------
Jarus Bosman
Senior Software Developer
State Information Technology Agency
South Africa
------------------------------