diff tests/test-commit-interactive-curses.t @ 27321:dcdf0a52ad36

crecord: add dictionary to default return value of filterpatch When committing interactively without changes, the user would get a ValueError exception. This patch adds a dictionary to the return value of filterpatch when there are no files to change.
author Laurent Charignon <lcharignon@fb.com>
date Wed, 09 Dec 2015 17:01:27 -0800
parents 55fa7c3900ae
children 505a10b504ed
line wrap: on
line diff
--- a/tests/test-commit-interactive-curses.t	Wed Dec 02 16:12:15 2015 -0800
+++ b/tests/test-commit-interactive-curses.t	Wed Dec 09 17:01:27 2015 -0800
@@ -41,6 +41,10 @@
   date:        Thu Jan 01 00:00:00 1970 +0000
   summary:     a
   
+Check that commit -i works with no changes
+  $ hg commit -i
+  no changes to record
+
 Committing only one file
 
   $ echo "a" >> a