Building Mercurial from source and producing a Debian package works on Debian Jessie, but the resulting package doesn't contain the 'hgk' command, so 'hg view' fails. The hgk executable does exist in the hg/contrib directory, so adding an .hgrc directive pointing to it does enable hg view, but it'd be tidier to have in the package. Poked around in the source a bit, but can't find where the "--install-layout=deb" option to setup.py is implemented, or where hgk would be added to the list of installed files - sorry!
Fixed by https://selenic.com/repo/hg/rev/79e1064f7c5e Augie Fackler <augie@google.com> debian: install hgk as part of mercurial-common (issue4829) Leaving the hgk binary in /usr/bin causes some lintian warnings, and downstream packages poke it in /usr/share/mercurial, so we'll just stash it in there. Rather than patch hgk.py as part of the Mercurial install, just drop a config file in /etc/mercurial/hgrc.d that points to the installed hgk. (please test the fix)
Thank you, that's working! Tested it as an upgrade over my current Mercurial (also built from source), and as a brand new package on a system that hadn't had any Mercurial installed on it, and in both cases, 'hg view' is functional.