Thu, 05 Oct 2017 20:46:49 +0000 test-push-race: use 'ui.atexit' instead of python's 'atexit'
Saurabh Singh <singhsrb@fb.com> [Thu, 05 Oct 2017 20:46:49 +0000] rev 34507
test-push-race: use 'ui.atexit' instead of python's 'atexit' Callbacks registered with 'atexit' are sometimes not called (like when a process is killed by the SIGTERM signal). Therefore, this commit replaces it with 'ui.atexit' which ensures that the callbacks are always called. This also makes the test compatible with chg. Test Plan: Ran the test 'test-push-race.t' with and without the '--chg' option. Differential Revision: https://phab.mercurial-scm.org/D957
Mon, 02 Oct 2017 04:48:06 +0530 py3: use '%d' for integers instead of '%s'
Pulkit Goyal <7895pulkit@gmail.com> [Mon, 02 Oct 2017 04:48:06 +0530] rev 34506
py3: use '%d' for integers instead of '%s' Differential Revision: https://phab.mercurial-scm.org/D973
Mon, 02 Oct 2017 04:46:17 +0530 py3: fix keyword arguments handling in mq
Pulkit Goyal <7895pulkit@gmail.com> [Mon, 02 Oct 2017 04:46:17 +0530] rev 34505
py3: fix keyword arguments handling in mq This patch fixes the handling of keyword arguments to functions on Python 3. On python3, the keys of keyword arguments need to str which is unicode. So any keyword argument will get will have str keys and any dictionary we pass as kwargs must have all the keys as str. This patch uses pycompat.(strkwargs|byteskwargs) to do so conversion between bytes keys and str keys and use r'' if there are very less uses and conversion can be prevented. Differential Revision: https://phab.mercurial-scm.org/D972
Thu, 05 Oct 2017 20:41:50 -0700 test-rebase-base: clarify it is about the "--base" flag
Jun Wu <quark@fb.com> [Thu, 05 Oct 2017 20:41:50 -0700] rev 34504
test-rebase-base: clarify it is about the "--base" flag It happened several times that people use `test-rebase-base.t` as a general purposed test file for rebase. But it is intended to be only related to the `--base` flag. This patch split, renamed the test, and added a note to clarify. Differential Revision: https://phab.mercurial-scm.org/D975
Fri, 30 Jun 2017 03:36:10 +0200 configitems: register the 'convert.p4.encoding' config
Boris Feld <boris.feld@octobus.net> [Fri, 30 Jun 2017 03:36:10 +0200] rev 34503
configitems: register the 'convert.p4.encoding' config
Fri, 30 Jun 2017 03:42:34 +0200 configitems: register the 'gpg.key' config
Boris Feld <boris.feld@octobus.net> [Fri, 30 Jun 2017 03:42:34 +0200] rev 34502
configitems: register the 'gpg.key' config
Fri, 30 Jun 2017 03:42:33 +0200 configitems: register the 'gpg.cmd' config
Boris Feld <boris.feld@octobus.net> [Fri, 30 Jun 2017 03:42:33 +0200] rev 34501
configitems: register the 'gpg.cmd' config
Fri, 30 Jun 2017 03:42:50 +0200 configitems: register the 'keywordset.svn' config
Boris Feld <boris.feld@octobus.net> [Fri, 30 Jun 2017 03:42:50 +0200] rev 34500
configitems: register the 'keywordset.svn' config
Fri, 30 Jun 2017 03:42:35 +0200 configitems: register the 'hgk.path' config
Boris Feld <boris.feld@octobus.net> [Fri, 30 Jun 2017 03:42:35 +0200] rev 34499
configitems: register the 'hgk.path' config
Fri, 30 Jun 2017 03:44:18 +0200 configitems: register the 'share.poolnaming' config
Boris Feld <boris.feld@octobus.net> [Fri, 30 Jun 2017 03:44:18 +0200] rev 34498
configitems: register the 'share.poolnaming' config
Fri, 30 Jun 2017 03:44:17 +0200 configitems: register the 'share.pool' config
Boris Feld <boris.feld@octobus.net> [Fri, 30 Jun 2017 03:44:17 +0200] rev 34497
configitems: register the 'share.pool' config
Fri, 30 Jun 2017 03:44:19 +0200 configitems: register the 'shelve.maxbackups' config
Boris Feld <boris.feld@octobus.net> [Fri, 30 Jun 2017 03:44:19 +0200] rev 34496
configitems: register the 'shelve.maxbackups' config
Fri, 30 Jun 2017 03:43:33 +0200 configitems: register the 'pager.attend' config
Boris Feld <boris.feld@octobus.net> [Fri, 30 Jun 2017 03:43:33 +0200] rev 34495
configitems: register the 'pager.attend' config
Fri, 30 Jun 2017 03:43:46 +0200 configitems: register the 'perf.stub' config
Boris Feld <boris.feld@octobus.net> [Fri, 30 Jun 2017 03:43:46 +0200] rev 34494
configitems: register the 'perf.stub' config
Fri, 30 Jun 2017 03:32:25 +0200 configitems: register the 'commands.rebase.requiredest' config
Boris Feld <boris.feld@octobus.net> [Fri, 30 Jun 2017 03:32:25 +0200] rev 34493
configitems: register the 'commands.rebase.requiredest' config
Fri, 30 Jun 2017 03:42:06 +0200 configitems: register the 'experimental.rebaseskipobsolete' config
Boris Feld <boris.feld@octobus.net> [Fri, 30 Jun 2017 03:42:06 +0200] rev 34492
configitems: register the 'experimental.rebaseskipobsolete' config
Fri, 30 Jun 2017 03:41:49 +0200 configitems: register the 'experimental.nonnormalparanoidcheck' config
Boris Feld <boris.feld@octobus.net> [Fri, 30 Jun 2017 03:41:49 +0200] rev 34491
configitems: register the 'experimental.nonnormalparanoidcheck' config
Fri, 30 Jun 2017 03:39:44 +0200 configitems: register the 'experimental.allowdivergence' config
Boris Feld <boris.feld@octobus.net> [Fri, 30 Jun 2017 03:39:44 +0200] rev 34490
configitems: register the 'experimental.allowdivergence' config
Thu, 05 Oct 2017 21:56:25 +0000 histedit: removing the experimental config 'histeditng'
Saurabh Singh <singhsrb@fb.com> [Thu, 05 Oct 2017 21:56:25 +0000] rev 34489
histedit: removing the experimental config 'histeditng' This config has been around for about 2 years now. So, it can be assumed to be stable. Therefore, I am removing the config. This also makes the test 'test-histedit-base.t' compatible with chg. Test Plan: - Ran the test 'test-histedit-base.t' with and without '--chg' option. - Ran all the other tests without '--chg' option. - Checked the output of 'hg help histedit'. Differential Revision: https://phab.mercurial-scm.org/D942
Thu, 05 Oct 2017 00:48:44 +0000 convert: fix the RevisionSpec import in the bzr module
Saurabh Singh <singhsrb@fb.com> [Thu, 05 Oct 2017 00:48:44 +0000] rev 34488
convert: fix the RevisionSpec import in the bzr module This import was failing (because its invalid) which was resulting in the following tests failing with chg running: - test-convert-bzr.t - test-convert-bzr-directories.t - test-convert-bzr-ghosts.t - test-convert-bzr-treeroot.t - test-convert-bzr-114.t - test-convert-bzr-merges.t This commit fixes the import which in turn fixes the tests. Test Plan: Ran the aforementioned tests with and without '--chg' option. Differential Revision: https://phab.mercurial-scm.org/D936
Thu, 05 Oct 2017 15:12:11 -0400 test-annotate: fix up expected output for pure
Augie Fackler <augie@google.com> [Thu, 05 Oct 2017 15:12:11 -0400] rev 34487
test-annotate: fix up expected output for pure This is just a side effect of surfacing the "revisions were skipped" state in the blame output. Differential Revision: https://phab.mercurial-scm.org/D956
Fri, 29 Sep 2017 15:48:34 +0000 style: never use a space before a colon or comma
Alex Gaynor <agaynor@mozilla.com> [Fri, 29 Sep 2017 15:48:34 +0000] rev 34486
style: never use a space before a colon or comma Differential Revision: https://phab.mercurial-scm.org/D954
Mon, 02 Oct 2017 19:25:11 -0700 eol: make [eol] config section sensitive for chg confighash
Jun Wu <quark@fb.com> [Mon, 02 Oct 2017 19:25:11 -0700] rev 34485
eol: make [eol] config section sensitive for chg confighash The eol extension may mangle the [eol] config section and that means chg is unable to detect config file change (because it re-applies setconfig changes). This makes test-eol.t pass with chg. Differential Revision: https://phab.mercurial-scm.org/D917
Mon, 02 Oct 2017 16:48:58 -0700 test-alias: make it compatible with chg
Jun Wu <quark@fb.com> [Mon, 02 Oct 2017 16:48:58 -0700] rev 34484
test-alias: make it compatible with chg ad1bdea (dispatch: defer environment variable resolution in alias commands (BC), 2016-05-06) made environment variables lazily resolved. But after D805 (alias: make alias command lazily resolved 2017-09-23), alias resolution happened after uisetup, which breaks the test for chg. `uisetup` is known to behave different in chg. Let's verify the feature without using `*setup`. Differential Revision: https://phab.mercurial-scm.org/D912
Wed, 04 Oct 2017 18:39:26 -0700 serve: make tests compatible with chg
Saurabh Singh <singhsrb@fb.com> [Wed, 04 Oct 2017 18:39:26 -0700] rev 34483
serve: make tests compatible with chg chg only supports 'hg serve' when the options to the serve command follow the 'hg serve'. For example, 'hg -R <repo> serve ..' is unsupported. This leads to issues with chg running for the following tests: - test-bundle2-exchange.t - test-clone-uncompressed.t - test-hgweb-csp.t - test-http-bad-server.t - test-http-bundle1.t - test-http-protocol.t - test-http.t There was an effort made earlier to fix this issue for chg and the tests were fixed to confirm to the compatible pattern. But the new tests did not take care of the same and hence, fail. Hopefully, there will be continuous build setup for chg after all tests are made compatible with chg so that we can avoid such issues. Test Plan: Ran the aforementioned tests with and without '--chg' option. Differential Revision: https://phab.mercurial-scm.org/D946
Sun, 01 Oct 2017 12:10:48 -0400 ui: convert to/from Optional[bytes] to Optional[str] in password manager
Augie Fackler <augie@google.com> [Sun, 01 Oct 2017 12:10:48 -0400] rev 34482
ui: convert to/from Optional[bytes] to Optional[str] in password manager This password manager proxy is roughly the right-looking layer to convert between strings and bytes. Many of these arguments can be None, so we have a helper method to make the conversion preserve Nones without exploding. Differential Revision: https://phab.mercurial-scm.org/D886
Wed, 04 Oct 2017 09:04:52 -0400 tests: invoke run-tests.py in test-hghave using $PYTHON (issue5697) stable
Augie Fackler <augie@google.com> [Wed, 04 Oct 2017 09:04:52 -0400] rev 34481
tests: invoke run-tests.py in test-hghave using $PYTHON (issue5697) Some platforms (notably pkgsrc on NetBSD) only provide versioned Python interpreters (eg `python2.7` exists, but `python` does not), which exposes this error. We want to be running run-tests.py with the python given in $PYTHON, since that might be `pypy` or `python3`.
Fri, 30 Jun 2017 03:37:05 +0200 configitems: register the 'debug.dirstate.delaywrite' config
Boris Feld <boris.feld@octobus.net> [Fri, 30 Jun 2017 03:37:05 +0200] rev 34480
configitems: register the 'debug.dirstate.delaywrite' config
Fri, 30 Jun 2017 03:43:13 +0200 configitems: register the 'merge.preferancestor' config
Boris Feld <boris.feld@octobus.net> [Fri, 30 Jun 2017 03:43:13 +0200] rev 34479
configitems: register the 'merge.preferancestor' config
Fri, 30 Jun 2017 03:39:10 +0200 configitems: register the 'email.from' config
Boris Feld <boris.feld@octobus.net> [Fri, 30 Jun 2017 03:39:10 +0200] rev 34478
configitems: register the 'email.from' config
Fri, 30 Jun 2017 03:44:24 +0200 configitems: register the 'smtp.port' config
Boris Feld <boris.feld@octobus.net> [Fri, 30 Jun 2017 03:44:24 +0200] rev 34477
configitems: register the 'smtp.port' config
Fri, 30 Jun 2017 03:43:48 +0200 configitems: register the 'phases.new-commit' config
Boris Feld <boris.feld@octobus.net> [Fri, 30 Jun 2017 03:43:48 +0200] rev 34476
configitems: register the 'phases.new-commit' config
Fri, 30 Jun 2017 03:41:23 +0200 configitems: register the 'experimental.histeditng' config
Boris Feld <boris.feld@octobus.net> [Fri, 30 Jun 2017 03:41:23 +0200] rev 34475
configitems: register the 'experimental.histeditng' config
Fri, 30 Jun 2017 03:41:19 +0200 configitems: register the 'experimental.histedit.autoverb' config
Boris Feld <boris.feld@octobus.net> [Fri, 30 Jun 2017 03:41:19 +0200] rev 34474
configitems: register the 'experimental.histedit.autoverb' config
Fri, 30 Jun 2017 03:42:40 +0200 configitems: register the 'histedit.singletransaction' config
Boris Feld <boris.feld@octobus.net> [Fri, 30 Jun 2017 03:42:40 +0200] rev 34473
configitems: register the 'histedit.singletransaction' config
Fri, 30 Jun 2017 03:42:39 +0200 configitems: register the 'histedit.linelen' config
Boris Feld <boris.feld@octobus.net> [Fri, 30 Jun 2017 03:42:39 +0200] rev 34472
configitems: register the 'histedit.linelen' config
Fri, 30 Jun 2017 03:42:38 +0200 configitems: register the 'histedit.dropmissing' config
Boris Feld <boris.feld@octobus.net> [Fri, 30 Jun 2017 03:42:38 +0200] rev 34471
configitems: register the 'histedit.dropmissing' config
Fri, 30 Jun 2017 03:42:37 +0200 configitems: register the 'histedit.defaultrev' config
Boris Feld <boris.feld@octobus.net> [Fri, 30 Jun 2017 03:42:37 +0200] rev 34470
configitems: register the 'histedit.defaultrev' config
Fri, 30 Jun 2017 03:44:30 +0200 configitems: register the 'transplant.log' config
Boris Feld <boris.feld@octobus.net> [Fri, 30 Jun 2017 03:44:30 +0200] rev 34469
configitems: register the 'transplant.log' config
Fri, 30 Jun 2017 03:44:29 +0200 configitems: register the 'transplant.filter' config
Boris Feld <boris.feld@octobus.net> [Fri, 30 Jun 2017 03:44:29 +0200] rev 34468
configitems: register the 'transplant.filter' config
Wed, 04 Oct 2017 11:58:00 -0400 urllibcompat: move some adapters from pycompat to urllibcompat
Augie Fackler <augie@google.com> [Wed, 04 Oct 2017 11:58:00 -0400] rev 34467
urllibcompat: move some adapters from pycompat to urllibcompat These are all the httpserver and urllib.* aliases. They seem to make more sense in the slightly-more-specific urllibcompat package than the general-purpose pycompat. Differential Revision: https://phab.mercurial-scm.org/D935
Sun, 01 Oct 2017 12:14:21 -0400 cleanup: use urllibcompat for renamed methods on urllib request objects
Augie Fackler <augie@google.com> [Sun, 01 Oct 2017 12:14:21 -0400] rev 34466
cleanup: use urllibcompat for renamed methods on urllib request objects Differential Revision: https://phab.mercurial-scm.org/D891
Sun, 01 Oct 2017 10:45:03 -0400 urllibcompat: new library to help abstract out some python3 urllib2 stuff
Augie Fackler <augie@google.com> [Sun, 01 Oct 2017 10:45:03 -0400] rev 34465
urllibcompat: new library to help abstract out some python3 urllib2 stuff Doing a new file instead of pycompat because I'm starting to feel like pycompat is getting a little enormous in terms of scope. Differential Revision: https://phab.mercurial-scm.org/D890
Wed, 04 Oct 2017 10:42:55 -0700 test-devel-warnings: make the test compatible with chg
Saurabh Singh <singhsrb@fb.com> [Wed, 04 Oct 2017 10:42:55 -0700] rev 34464
test-devel-warnings: make the test compatible with chg The test fails when run with the "--chg" option. Therefore, this commit makes it compatible with chg. Test Plan: Ran the test "test-devel-warnings.t' with and without the "--chg" option Differential Revision: https://phab.mercurial-scm.org/D915
Sun, 01 Oct 2017 22:26:24 +0100 fsmonitor: use configitem
Gregory Szorc <gregory.szorc@gmail.com> [Sun, 01 Oct 2017 22:26:24 +0100] rev 34463
fsmonitor: use configitem We might as well get this out of the way. Differential Revision: https://phab.mercurial-scm.org/D893
Sun, 01 Oct 2017 23:47:16 +0100 fsmonitor: access copymap in new location
Gregory Szorc <gregory.szorc@gmail.com> [Sun, 01 Oct 2017 23:47:16 +0100] rev 34462
fsmonitor: access copymap in new location fsmonitor has been busted since 0865d25e8a8a due to moving self._copymap. Fix it. Differential Revision: https://phab.mercurial-scm.org/D892
Sun, 01 Oct 2017 12:12:56 +0100 extdata: use subprocess so we don't have to chdir() manually
Yuya Nishihara <yuya@tcha.org> [Sun, 01 Oct 2017 12:12:56 +0100] rev 34461
extdata: use subprocess so we don't have to chdir() manually
Sun, 01 Oct 2017 11:58:27 +0100 extdata: just use iterator to read lines one by one
Yuya Nishihara <yuya@tcha.org> [Sun, 01 Oct 2017 11:58:27 +0100] rev 34460
extdata: just use iterator to read lines one by one
Sun, 01 Oct 2017 11:56:41 +0100 extdata: ignore ambiguous identifier as well
Yuya Nishihara <yuya@tcha.org> [Sun, 01 Oct 2017 11:56:41 +0100] rev 34459
extdata: ignore ambiguous identifier as well
Sun, 01 Oct 2017 11:13:09 +0100 templater: add experimental support for extdata
Yuya Nishihara <yuya@tcha.org> [Sun, 01 Oct 2017 11:13:09 +0100] rev 34458
templater: add experimental support for extdata This is minimal and non-controversial implementation of extdata() template function. Originally extdata sources were exposed to the keyword namespace, but I've changed it to a plain function for simplicity.
Sun, 01 Oct 2017 10:50:00 +0100 revset: add experimental support for extdata
Yuya Nishihara <yuya@tcha.org> [Sun, 01 Oct 2017 10:50:00 +0100] rev 34457
revset: add experimental support for extdata This is minimal and non-controversial implementation of extdata() revset. Originally extdata sources were exposed to the symbol namespace, but I've changed it to a plain function for simplicity.
Tue, 13 Sep 2016 14:14:05 -0500 extdata: add extdatasource reader
Matt Mackall <mpm@selenic.com> [Tue, 13 Sep 2016 14:14:05 -0500] rev 34456
extdata: add extdatasource reader This adds basic support for extdata, a way to add external data sources for revsets and templates. An extdata data source is simply a list of lines of the form: <revision identifier>[<space><freeform text>]\n An extdata source is configured thusly: [extdata] name = <a url or path> urls of the form shell: are launch shell commands to generate data. This patch is slightly modified by Yuya Nishihara as follows: - fix typo - remove unused function - remove future expansion point for parameter (which can be added later as the extdata revset/template are experimental) You can see the original patch at https://www.mercurial-scm.org/pipermail/mercurial-devel/2016-September/088426.html
Wed, 04 Oct 2017 10:02:15 +0200 tests: change to parent directory before all "hg init" in test-log.t
Denis Laxalde <denis.laxalde@logilab.fr> [Wed, 04 Oct 2017 10:02:15 +0200] rev 34455
tests: change to parent directory before all "hg init" in test-log.t Add a "cd .." before the second "hg init" so that all repositories are on top level of test directory. Makes inspection of test directory easier.
Tue, 03 Oct 2017 12:00:07 -0700 config: add a missing preparewrite() call
Jun Wu <quark@fb.com> [Tue, 03 Oct 2017 12:00:07 -0700] rev 34454
config: add a missing preparewrite() call Thanks Yuya for pointing this out in D808. Differential Revision: https://phab.mercurial-scm.org/D924
Tue, 03 Oct 2017 16:59:17 -0700 test-strip: make test compatible with chg
Saurabh Singh <singhsrb@fb.com> [Tue, 03 Oct 2017 16:59:17 -0700] rev 34453
test-strip: make test compatible with chg The test was using reposetup which had the logic for stripping commits. This leads to a situation where if the reposetup was called twice for an extension (which can happen with chg running), the stripped node would not be found the second time. Therefore, this commit changes the test to put the stripping logic inside commands instead of the reposetup. This ensures that the stripping logic is invoked only when the command is invoked and thus, avoids any problems. Test Plan: Ran the test 'test-strip.t' with and without the '--chg' option. Differential Revision: https://phab.mercurial-scm.org/D928
Tue, 03 Oct 2017 14:35:24 -0700 test-hook: make test compatible with chg
Saurabh Singh <singhsrb@fb.com> [Tue, 03 Oct 2017 14:35:24 -0700] rev 34452
test-hook: make test compatible with chg The test uses the 'print' method instead of writing to stdout using 'ui.write' which leads to incompatibility with chg. This commit modifies the test to use 'ui' instead which fixes the problem. Test Plan: Ran the test 'test-hook.t' with and without '--chg' option. Differential Revision: https://phab.mercurial-scm.org/D927
Tue, 03 Oct 2017 13:30:36 -0700 test-setdiscovery: make test compatible with chg
Saurabh Singh <singhsrb@fb.com> [Tue, 03 Oct 2017 13:30:36 -0700] rev 34451
test-setdiscovery: make test compatible with chg The test checks the output of the blackbox extension which will contain logs corresponding to chg in case chg is running. Therefore, this commit modifies the test to take chg into consideration while working with the blackbox extension. Test Plan: Ran the test 'test-setdiscovery.t' with and without the '--chg' option. Differential Revision: https://phab.mercurial-scm.org/D926
Tue, 03 Oct 2017 13:05:58 -0700 test-merge-subrepos: make test compatible with chg
Saurabh Singh <singhsrb@fb.com> [Tue, 03 Oct 2017 13:05:58 -0700] rev 34450
test-merge-subrepos: make test compatible with chg The test checks the output of '.hg/blackbox.log' which will contain logs corresponding to chg in case chg is running. Therefore, this commit modifies the test to take chg into consideration while checking the blackbox.log contents. Test Plan: Ran the test 'test-merge-subrepos.t' with and without the '--chg' option. Differential Revision: https://phab.mercurial-scm.org/D925
Tue, 03 Oct 2017 12:49:28 -0700 test-convert-cvs: make test compatible with chg
Saurabh Singh <singhsrb@fb.com> [Tue, 03 Oct 2017 12:49:28 -0700] rev 34449
test-convert-cvs: make test compatible with chg The test uses the 'print' method instead of writing to stdout using 'ui.write' which leads to incompatibility with chg. This commit modifies the test to use the 'ui' object instead which fixes the problem. Test Plan: Ran the test 'test-convert-cvs.t' with and without '--chg' option. Differential Revision: https://phab.mercurial-scm.org/D923
Tue, 03 Oct 2017 12:09:23 -0700 test-basic: make test compatible with chg
Saurabh Singh <singhsrb@fb.com> [Tue, 03 Oct 2017 12:09:23 -0700] rev 34448
test-basic: make test compatible with chg The error codes returned when writing to /dev/full are different after the first failure with and without '--chg' option. Therefore, this commit conditionally handles the error codes as appropriate. Test Plan: Ran the test 'test-basic.t' with and without '--chg' option. Differential Revision: https://phab.mercurial-scm.org/D922
(0) -30000 -10000 -3000 -1000 -300 -100 -60 +60 +100 +300 +1000 +3000 +10000 tip