Reputation: 283313
Here's my shell command:
hg log --rev 'max(removes('\''**/all_the_things.js'\''))' --template '\{"files":[{join(file_dels % '\''{file|json}'\'','\'','\'')}],"node":{p1node|json}}'
This spits out something like this (formatted for legibility):
{
"files": [
...
"www/js/MozCompatibility.js",
"www/js/all_the_things.js",
"www/js/autosuggest.css",
...
],
"node": "b59fd118983e6c52b3a267ab8de305d0a73d4f06"
}
My question is: how can I filter the result of file_dels
to only list files that match my glob?
i.e., I'm trying to find the parent of the revision that deleted a specific file, searching via glob, so that I can recover it. My --rev
finds said revision, but the template lists out too many files -- I only want to find the one(s) that match my search criteria.
Upvotes: 1
Views: 55