Вопрос

I'm trying to create a snapshot view via perl script which is working fine. Currently trying to write a config spec that loads based on label for that view. Problem I'm facing is root directory doesnot have this label. so below config spec is falling. I can't add main/latest because I need files only with this label.

element * CHECKEDOUT
load \vobname
element * labelname-nocheckout
element * -none 
Это было полезно?

Решение

Try adding a rule just for the root directory /vobname:

element * CHECKEDOUT
element /vobname /main/LATEST
element * labelname-nocheckout
element * -none 
load /vobname

A few comments:

  • the load rule (load /vobname) can be set at the end of the config spec
  • you don't need to use \, even on Windows. '/' is fine
  • the order of the selection rule is important, which is why the element /vobname /main/LATEST is placed first.
  • The selection rule element /vobname /main/LATEST is only for the folder /vobname (not for any of its sub-folder elements)
  • this assumes that any element under /vobname has a label set on one of its versions.
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top