@mcascone said in Proget: retention policy for branches in a package:
This means mybranch and mybranch2 can be reduced to mybranch2.
Sorry but wouldn't this be the reverse: *mybranch* will match *mybranch2*?
What I mean to say.... because it's an AND conditional, the *mybranch* is effectively ignored. Everything that matches *mybranch2* will also match *mybranch*, but the opposite isn't true. E.g. mybranch1 won't match both conditions.
@mcascone said in Proget: retention policy for branches in a package:
in this feed, delete matches of 'mybranch', except the latest 3 versions of those matches, which would only impact the versions matching mybranch and leave all other non-matches untouched;
Correct. And do note that you can set retention policies to run in dry mode, where nothing is deleted, to verify it's the behavior you want.