changeset 2808:f47ed78ab17b mercurial-4.2

test-compat: merge with stable
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 25 Jul 2017 15:17:17 +0200
parents cc3e09e033a3 (diff) 2280461343e5 (current diff)
children f25c79365f5d 67b59d1657cf
files
diffstat 5 files changed, 48 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/README	Tue Jul 25 03:41:15 2017 +0200
+++ b/README	Tue Jul 25 15:17:17 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
 -------------------
--- a/hgext3rd/evolve/__init__.py	Tue Jul 25 03:41:15 2017 +0200
+++ b/hgext3rd/evolve/__init__.py	Tue Jul 25 15:17:17 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]
--- a/hgext3rd/evolve/metadata.py	Tue Jul 25 03:41:15 2017 +0200
+++ b/hgext3rd/evolve/metadata.py	Tue Jul 25 15:17:17 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/'
--- a/hgext3rd/topic/__init__.py	Tue Jul 25 03:41:15 2017 +0200
+++ b/hgext3rd/topic/__init__.py	Tue Jul 25 15:17:17 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
 
--- a/tests/test-topic-stack.t	Tue Jul 25 03:41:15 2017 +0200
+++ b/tests/test-topic-stack.t	Tue Jul 25 15:17:17 2017 +0200
@@ -187,6 +187,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