I'm having a process in RA that uses the hco command to go to harvest and download a specific package from a specific state using the following command :
hco -b harvestPeru -usr <user> -pw <password> -en "PROPUESTA" -st "Despliegue Desarrollo" -vp "\PROPUESTA_TDE" -cp . -pf "<package_name>" -po -pn "Check out Lectura" -s *.* -br -r -o hco.log
The thing is, it always downloads trunk versions : if i have a package with only branch versions, when I run the command to download the entire package, it ends up empty with a hco.log file saying there are no versions to download :
Is there any way to download branch versions with the command? Maybe adding some other variable or parameter?
Add -br for "branch only" or -tb for "trunk and branch". "Trunk only" is the default (specified with -to).
Edit: Correction -bo is "branch only"; you already have -br for "browse mode".
Actually the options are "-bo" for branch versions only, "-to" for trunk versions only, or "-tb" for trunk and branch versions. I think "-to" is the default. Here is where you can read more about these options:
hco Command-Check-out - CA Harvest SCM - 13.0 - CA Technologies Documentation
This is exactly what I was looking for. Thanks !