# HG changeset patch # User Pierre-Yves David # Date 1500988672 -7200 # Node ID 604ddf1e1a8e51518f81c06ee79a257155967bbf # Parent f25c79365f5d725c3c1d856cd2fb64a70b374ab5# Parent 13c4d518327ab6505e7e4cc09bd57b3c0d99eab3 test-compat: merge with mercurial-4.1 diff -r 13c4d518327a -r 604ddf1e1a8e README --- a/README Tue Jul 25 04:00:17 2017 +0200 +++ b/README Tue Jul 25 15:17:52 2017 +0200 @@ -121,23 +121,29 @@ Changelog ========= -6.6.0 - in progress +6.6.0 -- 2017-07-25 ------------------- - - amend: add a --extract flag to move change back to the working copy + - amend: add a --extract flag to move change back to the working copy, (same as uncommit, but accessible through the amend commit) - - split: now properly refuse to split public changeset - - commands: unify and improve the pre-rewrite validation and error message - - uncommit: add support for --current-date and --current-user option - - fold: add support for --current-date and --current-user option - - metaedit: add support for --current-date and --current-user option - - split add support for --current-date and --current-user option + - split: now properly refuse to split public changeset, + - commands: unify and improve the pre-rewrite validation and error message, + - uncommit: add support for --current-date and --current-user option, + - fold: add support for --current-date and --current-user option, + - metaedit: add support for --current-date and --current-user option, + - split: add support for --current-date and --current-user option, + - compat: use various new API instead of the one deprecated in 4.3, + (when available) + - documentation: various minor documentation update. + +topic (0.2.0): - topic: add --age option to sort topic by the most recently touched, - topic: add a 't0' to access the root of a topic while keeping it active, - topic: allow 'hg prev' to me move to 't0', - - topic: add a config option to enforce topic on new commit + - topic: add a config option to enforce topic on new commit, (experimental.enforce-topic) + - topic: make command names valid as expected, even if ui.strict=true. 6.5.0 -- 2017-07-02 ------------------- diff -r 13c4d518327a -r 604ddf1e1a8e hgext3rd/evolve/__init__.py --- a/hgext3rd/evolve/__init__.py Tue Jul 25 04:00:17 2017 +0200 +++ b/hgext3rd/evolve/__init__.py Tue Jul 25 15:17:52 2017 +0200 @@ -2066,7 +2066,7 @@ raise children = [ctx for ctx in wparents[0].children() if not ctx.obsolete()] - topic = getattr(repo, 'currenttopic', '') + topic = _getcurrenttopic(repo) filtered = [] if topic and not opts.get("no_topic", False): filtered = [ctx for ctx in children if ctx.topic() != topic] diff -r 13c4d518327a -r 604ddf1e1a8e hgext3rd/evolve/metadata.py --- a/hgext3rd/evolve/metadata.py Tue Jul 25 04:00:17 2017 +0200 +++ b/hgext3rd/evolve/metadata.py Tue Jul 25 15:17:52 2017 +0200 @@ -5,7 +5,7 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. -__version__ = '6.6.0.dev' -testedwith = '3.8.4 3.9.2 4.0.2 4.1.3 4.2.1' +__version__ = '6.6.0' +testedwith = '3.8.4 3.9.2 4.0.2 4.1.3 4.2.2' minimumhgversion = '3.8' buglink = 'https://bz.mercurial-scm.org/' diff -r 13c4d518327a -r 604ddf1e1a8e hgext3rd/topic/__init__.py --- a/hgext3rd/topic/__init__.py Tue Jul 25 04:00:17 2017 +0200 +++ b/hgext3rd/topic/__init__.py Tue Jul 25 15:17:52 2017 +0200 @@ -118,7 +118,7 @@ 'topic.active': 'green', } -version = '0.2.0.dev' +version = '0.2.0' testedwith = '4.0.2 4.1.3 4.2.1' minimumhgversion = '4.0' buglink = 'https://bz.mercurial-scm.org/' @@ -307,12 +307,13 @@ 'topics', 'topic', namemap=_namemap, nodemap=_nodemap, listnames=lambda repo: repo.topics)) -@command('topics [TOPIC]', [ +@command('topics', [ ('', 'clear', False, 'clear active topic if any'), ('r', 'rev', '', 'revset of existing revisions', _('REV')), ('l', 'list', False, 'show the stack of changeset in the topic'), ('', 'age', False, 'show when you last touched the topics') - ] + commands.formatteropts) + ] + commands.formatteropts, + _('hg topics [TOPIC]')) def topics(ui, repo, topic='', clear=False, rev=None, list=False, **opts): """View current topic, set current topic, change topic for a set of revisions, or see all topics. @@ -365,7 +366,9 @@ _listtopics(ui, repo, opts) -@command('stack [TOPIC]', [] + commands.formatteropts) +@command('stack', [ + ] + commands.formatteropts, + _('hg stack [TOPIC]')) def cmdstack(ui, repo, topic='', **opts): """list all changesets in a topic and other information diff -r 13c4d518327a -r 604ddf1e1a8e tests/test-topic-stack.t --- a/tests/test-topic-stack.t Tue Jul 25 04:00:17 2017 +0200 +++ b/tests/test-topic-stack.t Tue Jul 25 15:17:52 2017 +0200 @@ -189,6 +189,29 @@ } ] +check that topics and stack are available even if ui.strict=true + + $ hg topics + * foo + $ hg stack + ### topic: foo + ### branch: default + t4@ c_f (current) + t3: c_e + t2: c_d + t1: c_c + t0^ c_b (base) + $ hg topics --config ui.strict=true + * foo + $ hg stack --config ui.strict=true + ### topic: foo + ### branch: default + t4@ c_f (current) + t3: c_e + t2: c_d + t1: c_c + t0^ c_b (base) + error case, nothing to list $ hg topic --clear