- Oct 12, 2018
-
-
Rodrigo Damazio Bovendorp authored
Differential Revision: https://phab.mercurial-scm.org/D5068
-
Rodrigo Damazio Bovendorp authored
Differential Revision: https://phab.mercurial-scm.org/D5066
-
- Oct 13, 2018
-
-
Rodrigo Damazio Bovendorp authored
Differential Revision: https://phab.mercurial-scm.org/D5065
-
- Sep 06, 2018
-
-
Yuya Nishihara authored
-
- Oct 10, 2017
-
-
muxator authored
This and the following commits try to add the necessary quoting in the build scripts to make the process more robust. The target for now is rendering "make deb" successful even when the base directory contains spaces (eg. "/opt/mercu rial"). The build process should succeed without scattering files in spurious directories (eg.: "/opt/mercu/usr/bin/hg").
-
- May 28, 2017
-
-
durin42 authored
-
- May 13, 2017
-
-
Yuya Nishihara authored
Otherwise some messages wouldn't be translated depending on when the util was loaded.
-
- Oct 22, 2016
-
-
Yuya Nishihara authored
This allows us to write doctests depending on a ui object, but not on global configs. ui.load() is a class method so we can do wsgiui.load(). All ui() calls but for doctests are replaced with ui.load(). Some of them could be changed to not load configs later.
-
- Oct 07, 2016
-
-
Augie Fackler authored
These don't exist in Python 3, and this ends up looking a little more explicit to Martijn and me anyway.
-
- May 14, 2016
-
-
Yuya Nishihara authored
-
- Jun 20, 2016
-
-
Katsunori FUJIWARA authored
Before this patch, "missing _() in ui message" rule overlooks translatable message, which starts with other than alphabet. To detect "missing _() in ui message" more exactly, this patch improves the regexp with assumptions below. - sequence consisting of below might precede "translatable message" in same string token - formatting string, which starts with '%' - escaped character, which starts with 'b' (as replacement of '\\'), or - characters other than '%', 'b' and 'x' (as replacement of alphabet) - any string tokens might precede a string token, which contains "translatable message" This patch builds an input file, which is used to examine "missing _() in ui message" detection, before '"$check_code" stringjoin.py' in test-contrib-check-code.t, because this reduces amount of change churn in subsequent patch. This patch also applies "()" instead of "_()" on messages below to hide false-positives: - messages for ui.debug() or debug commands/tools - contrib/debugshell.py - hgext/win32mbcs.py (ui.write() is used, though) - mercurial/commands.py - _debugchangegroup - debugindex - debuglocks - debugrevlog - debugrevspec - debugtemplate - untranslatable messages - doc/gendoc.py (ReST specific text) - hgext/hgk.py (permission string) - hgext/keyword.py (text written into configuration file) - mercurial/cmdutil.py (formatting strings for JSON)
-
- May 16, 2016
-
-
timeless authored
next(..) was introduced in py2.6 and .next() is not available in py3 https://docs.python.org/2/library/functions.html#next
-
- May 12, 2016
-
-
Pulkit Goyal authored
-
Pulkit Goyal authored
-
Pulkit Goyal authored
In python3 raise error, message has been changed to raise error(message) In additional to that nodes.SkipNode is changed to nodes.SkipNode() so that it creates an instance directly.
-
- May 07, 2016
-
-
Sean Farley authored
This corrects a warning from lintian that we're shipping an executable without a man page. Since there is a doc string in the text, let's use that for the man page.
-
- Apr 16, 2016
-
-
Pulkit Goyal authored
-
Pulkit Goyal authored
Fixed direct imports even the tests were not complaining.
-
Pulkit Goyal authored
Also fixed direct symbol imports even the tests were not complaining.
-
- Jan 12, 2016
-
-
timeless authored
-
- Mar 03, 2016
-
-
timeless authored
-
- Feb 11, 2016
-
-
Katsunori FUJIWARA authored
Before this patch, ":hg:`help config.SECTION`" in online help text is translated to a link to "hg.1.html#config.SECTION" in HTML unintentionally. This patch translates from :hg:`help config.SECTION` in online help text to a valid link to "hgrc.5.html#SECTION" in HTML. This patch ignores element(s) under "SECTION" (e.g. "ITEM" of ":hg:`help config.SECTION.ITEM`"), because there is no way to refer directly to it in HTML, yet.
-
Katsunori FUJIWARA authored
Before this patch, ":hg:`help config`" in online help text is translated to a link to "hg.1.html#config" in HTML, even though actual "hg help config" shows not help for "hg config" command but "config" help topic, and all of current ":hg:`help config`" expects the latter. This patch translates from ":hg:`help config`" in online help text to a link to "hgrc.5.html" in HTML as expected. This patch also allows ":hg:`help -c COMMAND`" style to link "hg.1.html#COMMAND" for readability.
-
- Feb 10, 2016
-
-
Katsunori FUJIWARA authored
This is fixing for 'must indent 4 spaces' check-code rule. check-code has overlooked this, because a file isn't recognized as one to be checked (this problem is fixed by subsequent patch).
-
Katsunori FUJIWARA authored
This is fixing for 'naked except clause' check-code rule. check-code has overlooked this, because a file isn't recognized as one to be checked (this problem is fixed by subsequent patch).
-
- Jan 18, 2016
-
-
Matt Mackall authored
-
- Jan 12, 2016
-
-
Bryan O'Sullivan authored
-
- Jan 06, 2016
- Dec 17, 2015
-
-
Jun Wu authored
extensions.load does need ui argument to print error if an extension fails to load.
-
- Dec 23, 2015
-
-
Bryan O'Sullivan authored
Without this, if an import error occurs (as with pypy), the attempt to report it fails since ui is None.
-
Bryan O'Sullivan authored
This will make it possible to get semi-meaningful tracebacks if an import error occurs. Why care? Trying to run this script under pypy currently fails, but the true error is obscured.
-
- Dec 22, 2015
-
-
timeless authored
-
- Dec 12, 2015
-
-
Gregory Szorc authored
Without this, running gendoc.py during an install without C modules available (via `make local`) will result in an import failure because the default module load policy insists on C modules. We also remove the sys.path adjustment because it is no longer needed since our magic importer handles things.
-
- Nov 25, 2015
-
-
Gregory Szorc authored
If we don't change this, the upcoming change to make the module loading policy only load C modules will cause this script to fail if run with CPython against an unbuilt source checkout.
-
- Oct 20, 2015
-
-
Matt Mackall authored
-
- Oct 16, 2015
-
-
Mads Kiilerich authored
-
- Sep 30, 2015
-
-
Matt Mackall authored
-
- Sep 26, 2015
-
-
Yuya Nishihara authored
This is necessary to hide DEPRECATED items conditionally. Flagged as API change because it will break "hg help git|subversion".
-
- Sep 27, 2015
-
-
Yuya Nishihara authored
ui attributes will be required by a help function, so a file object can't be used as a fake ui.
-