diff -r 354329178dee -r ff874d34c856 doc/gendoc.py --- a/doc/gendoc.py Thu May 18 12:49:10 2017 -0700 +++ b/doc/gendoc.py Sat May 13 17:53:55 2017 +0900 @@ -16,6 +16,10 @@ # import from the live mercurial repo sys.path.insert(0, "..") from mercurial import demandimport; demandimport.enable() +# Load util so that the locale path is set by i18n.setdatapath() before +# calling _(). +from mercurial import util +util.datapath from mercurial import ( commands, extensions,