[PATCH 07 of 18] add a very simple test for phases

pierre-yves.david at logilab.fr pierre-yves.david at logilab.fr
Mon Oct 10 07:28:03 CDT 2011


# HG changeset patch
# User Alain  Leufroy <alain.leufroyATgmailMYDOTcom>
# Date 1318168735 -7200
# Node ID 3f1cd2b3ac07d28ca5a734add488808b665c76a6
# Parent  2d7d038c49b2a5e33b21ce0006adb845c48665b9
add a very simple test for phases

diff --git a/tests/test-phases.t b/tests/test-phases.t
new file mode 100644
--- /dev/null
+++ b/tests/test-phases.t
@@ -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 1 first


More information about the Mercurial-devel mailing list