I want to apply a label to latest versions of objects that created before a specific time. For example :
MyObject.java
has 4 versions.
- 1. version created on 2010-01-02
- 2. version created on 2010-06-25
- 3. version created on 2013-03-17
- 4. version created on 2014-01-13
Let's say I have 100+ objects in a specific path.
I want to find versions of objects created before 2014-01-01
and apply label to latest versions that obtain this condition of all objects (elements).
In this example;
I want to apply label on MyObject.java@@\main\3
Thanks
Update :
I am looking for a command like this :
find . -version "created_since(01-Jan-2000) && !created_since(01-Jan-2014) && version(/main/LATEST)" -print -exec "mklabel -replace TO_PROD"
this one is not working! I think it wants full path of objects. This find command returns paths that not include VOB path.