This patch adds functionality to update the pinnedrevs set with the hidden
commits whose hashes are passed if the command allow accessing them and showing
warning depending on repo.filtername which is set by the type of command.
The logic to check whether a symbol is hash and logic related to showing
warning to user is imported from directacess extension from fb-hgext.