(What happens if a branch is deleted? How are the contained changesets lost? What happens to merges to other branches?)
So the real question is -How can I filter this god awful Branches tab? I can’t even figure out a simple query like “List only branches that had changes in the past 10 days (not “since Date”, must be sliding window), sorted descending by branch name”.
How can I write that or a reasonably similar query and roll it out as default for all developers?
Especially with task branching, this list swells and swells and searching by branch name doesn’t really work given the many, many related topics we develop on.
It’s not doable to delete a branch without deleting all the changesets. I mean you can only delete an empty branch.
Are you using the branches tab or the branch explorer? Normally most of our customers are using the branch explorer on a daily basis. In the branch explorer: display options, date filter, filters and conditional format… there are a few options to customize the branch explorer.
For the branches tag, you can also run custom queries to filter the branches of the file.
eg:
find branch where date >= ‘4 days ago’
Awesome, but instead of date, I think changesets makes way more sense (as branch creation date is unrelated to this)
find branch where changesets >= '10 days ago' or name = "develop"
The Branch Explorer has a feature where you can highlight branches with pending merges. What’s the query for that? That would solve the issue really well
find branch where changesets >= '10 days ago' or name = "develop" or HASPENDINGMERGES
The documentation you linked shows a very dense, write-only block of PowerShell code; I don’t think that can be pasted in the query field.