문제

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