changeset 50:55469dbb19c4

testfixes
author Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
date Sun, 25 Sep 2016 22:02:55 +0200
parents d76b40291d10
children 14a3ffbba22b
files drone.sh mercurial_all_paths.py tests/basic.t tests/groups-legacy.t
diffstat 4 files changed, 11 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/drone.sh	Sun Sep 25 22:02:55 2016 +0200
@@ -0,0 +1,4 @@
+# Copy of test recipe used on drone.io
+
+pip -q install tox
+tox
--- a/mercurial_all_paths.py	Sun Sep 25 21:42:51 2016 +0200
+++ b/mercurial_all_paths.py	Sun Sep 25 22:02:55 2016 +0200
@@ -53,8 +53,6 @@
     if not group:
         return _find_all_paths(ui, skip_ignored=True, sort_by_priority=True)
 
-    print "DBG:GRR", group
-    
     # „Modern” syntax
     grp_def = ui.configlist("all_paths", "group." + group)
     if grp_def:
@@ -133,7 +131,7 @@
 
 
 EXT_OPTS = [
-    ('g', 'group', None, _('use a named group instead of all paths')),
+    ('g', 'group', '', _('use a named group instead of all paths')),
     ('', 'ignore-errors', None, _('continue execution despite errors')),
 ]
 
--- a/tests/basic.t	Sun Sep 25 21:42:51 2016 +0200
+++ b/tests/basic.t	Sun Sep 25 22:02:55 2016 +0200
@@ -185,19 +185,19 @@
 Without remotes those commands do nothing
 
   $ hg --cwd $REP3 pullall
-  abort: No paths defined in section paths
+  abort: No paths defined for repository
   [255]
 
   $ hg --cwd $REP3 pushall
-  abort: No paths defined in section paths
+  abort: No paths defined for repository
   [255]
 
   $ hg --cwd $REP3 incomingall
-  abort: No paths defined in section paths
+  abort: No paths defined for repository
   [255]
 
   $ hg --cwd $REP3 outgoingall
-  abort: No paths defined in section paths
+  abort: No paths defined for repository
   [255]
 
 Finally let's test that push options work
--- a/tests/groups-legacy.t	Sun Sep 25 21:42:51 2016 +0200
+++ b/tests/groups-legacy.t	Sun Sep 25 22:02:55 2016 +0200
@@ -248,11 +248,11 @@
 Neither do default commands without normal paths
 
   $ hg --cwd $BASE pushall
-  abort: No paths defined in section paths
+  abort: No paths defined for repository
   [255]
 
   $ hg --cwd $BASE pullall
-  abort: No paths defined in section paths
+  abort: No paths defined for repository
   [255]
 
 Finally let's test that push options work