[PATCH] Test that qpush can't handle empty file

Hideya 'OhaC' OHASHI ohachige at gmail.com
Wed Oct 31 03:58:11 UTC 2007


# HG changeset patch
# User OHASHI Hideya <ohachige at gmail.com>
# Date 1193802775 -32400
# Node ID 285ecfcd9a1fbd201d3e792dea11e0c7861449e2
# Parent  f0a3918abd42578c06f443e673b05ed51f669aa5
Test that qpush can't handle empty file

diff -r f0a3918abd42 -r 285ecfcd9a1f tests/test-mq-empty
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/test-mq-empty       Wed Oct 31 12:52:55 2007 +0900
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+# Test that qpush can't handle empty file
+
+echo "[extensions]" >> $HGRCPATH
+echo "mq=" >> $HGRCPATH
+
+hg init repo
+cd repo
+
+touch foo
+hg ci -Am 'add foo' -d '0 0'
+
+hg qinit
+hg qnew patch1
+echo 'foo' >> foo
+hg qrefresh -m 'patch 1'
+
+hg qpop
+hg qpush
+hg qpop
diff -r f0a3918abd42 -r 285ecfcd9a1f tests/test-mq-empty.out
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/test-mq-empty.out   Wed Oct 31 12:52:55 2007 +0900
@@ -0,0 +1,5 @@
+adding foo
+Patch queue now empty
+applying patch1
+Now at: patch1
+Patch queue now empty



More information about the Mercurial-devel mailing list