diff tests/test-dispatch.py.out @ 38038:6f9ac3cb0987

dispatch: unify handling of None returned by a command function A command function may return None in place of 0 just for convenience, but dispatch() doesn't need to inherit that property. This patch makes it be friendly to callers.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 12 May 2018 15:33:09 +0900
parents 883d887c6408
children
line wrap: on
line diff
--- a/tests/test-dispatch.py.out	Fri May 11 21:23:48 2018 -0700
+++ b/tests/test-dispatch.py.out	Sat May 12 15:33:09 2018 +0900
@@ -1,18 +1,18 @@
 running: init test1
-result: None
+result: 0
 running: add foo
 result: 0
 running: commit -m commit1 -d 2000-01-01 foo
-result: None
+result: 0
 running: commit -m commit2 -d 2000-01-02 foo
-result: None
+result: 0
 running: log -r 0
 changeset:   0:0e4634943879
 user:        test
 date:        Sat Jan 01 00:00:00 2000 +0000
 summary:     commit1
 
-result: None
+result: 0
 running: log -r tip
 changeset:   1:45589e459b2e
 tag:         tip
@@ -20,4 +20,4 @@
 date:        Sun Jan 02 00:00:00 2000 +0000
 summary:     commit2
 
-result: None
+result: 0