I did a quick check of the hgweb files and found this: Find the hgweb/webcommands. Py file of your mercurial installation, and open it in an editor. Change the following code at the top of the file: all__ = 'log', 'rawfile', 'file', 'changelog', 'shortlog', 'changeset', 'rev', 'manifest', 'tags', 'bookmarks', 'branches', 'summary', 'filediff', 'diff', 'annotate', 'filelog', 'archive', 'static', 'graph', 'help', to this: all__ = This disables all web commands; you can still view the list of repos, but not any more infos about them I did check hg clone and hg pull but not hg push.
I did a quick check of the hgweb files and found this: Find the hgweb/webcommands. Py file of your mercurial installation, and open it in an editor. Change the following code at the top of the file: __all__ = 'log', 'rawfile', 'file', 'changelog', 'shortlog', 'changeset', 'rev', 'manifest', 'tags', 'bookmarks', 'branches', 'summary', 'filediff', 'diff', 'annotate', 'filelog', 'archive', 'static', 'graph', 'help', to this: __all__ = This disables all web commands; you can still view the list of repos, but not any more infos about them.
I did check hg clone and hg pull, but not hg push.
I don't know why you want to restrict access to the UI part since any information provided here is accessible if they can access the files, but so be it :P If you want some clean solution, I think taking the code of hgweb. Cgi and rewrite it won't be too difficult, but I think you can also do something quicker : hg serve -t /dev/null This will use /dev/null as the template for the UI part, so the users will receive an "Internal Server Error" page when connecting to the server but will be able to access the repository just fine through hg. Only downside, the log will be field with errors if there's access through a browser.PS: if you're not on a Unix system, just use any empty directory as a source for the templates.
This solution has one big downside: hg serve has no access control, so if you want to enable pushing, you can only allow it for everyone. – daniel kullmann 2 days ago Nothing was said about access control in the question, so I assumed this wasn't needed. – krtek 2 days ago.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.