Commits

Markus Zapke-Gründemann committed 06e402f

Added comments to the tests.

Comments (0)

Files changed (1)

test-printparents.t

-Test printparents extension:
+Test printparents extension.
 
+Activate the printparents extension:
   $ echo "[extensions]" >> $HGRCPATH
   $ echo "printparents=" >> $HGRCPATH
+
+Create a new repo:
   $ hg init r
   $ cd r
+
+Add two new files and commit them separately:
   $ echo c1 > f1
   $ hg commit -Am 0
   adding f1
   $ echo c2 > f2
   $ hg commit -Am 1
   adding f2
+
+Update to revision 0. Add and commit a third file creating a new head:
   $ hg up 0
   0 files updated, 0 files merged, 1 files removed, 0 files unresolved
   $ echo c3 > f3
   $ hg commit -Am 2
   adding f3
   created new head
+
+Merge the two heads and commit:
   $ hg merge
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   (branch merge, don't forget to commit)
   $ hg commit -m 3
+
+Test printparents with the (merged) tip:
   $ hg print-parents tip
   default 33960aadc16f c3adabd1a5f4
+
+Testing printparents with revision 2 will fail (because there is only one parent):
   $ hg print-parents 2
   abort: revision 2 has only one parent
   [255]