Deleting all versions in very large package
search cancel

Deleting all versions in very large package

book

Article ID: 280381

calendar_today

Updated On:

Products

CA Harvest Software Change Manager CA Harvest Software Change Manager - OpenMake Meister

Issue/Introduction

We must delete all the reserved, checked-out versions of all objects out of a package. 

A developer initiated a Check Out for Update process, instead of a Check Out for Browse on the entire application repository.  The process was left running all weekend.  When they saw this morning that the process was still running, they ended their Harvest session.

Due to the extremely large number of objects in the package, Harvest is unable to display the list of objects. We cannot delete the reserved objects without being able to see them within the package.

Since the objects are checked out to this package, no other checkouts of the objects can be done.

Environment

Harvest SCM all versions

Resolution

Since the package was too large to manage with Workbench, we used the "hdv" command-line utility to delete the "R" tagged versions from it.  We deleted the versions inside subfolders of the project's repository so as to "break up" the task of deleting all the items into chunks that Harvest could more easily handle.

For example:

hdv -b <brokername> -en <projectname> -st <statename> -vp <full path of a subfolder within the repository> -p <packagename> -s "*" -prompt 

 

Additional Information

More information can be found for the "hdv" command here: hdv Command-Delete Version