phases: add a very simple test
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Fri, 04 Nov 2011 00:40:47 +0100
changeset 15423 ea5b346024e1
parent 15422 042e11c4e416
child 15424 f3b5ba25d217
phases: add a very simple test Note that the expected output is wrong as is should be phase-1. But the machinery to plant new root is to come in later commit.
tests/test-phases.t
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/test-phases.t	Fri Nov 04 00:40:47 2011 +0100
@@ -0,0 +1,10 @@
+  $ alias hglog='hg log --template "{rev} {phase} {desc}\n"'
+
+  $ hg init initialrepo
+  $ cd initialrepo
+  $ touch sam
+  $ hg add sam
+  $ hg ci -m 'first'
+
+  $ hglog
+  0 0 first