Patchwork D3120: tests: add test for `hg children -r <revset>`

login
register
mail settings
Submitter phabricator
Date April 5, 2018, 4:49 a.m.
Message ID <differential-rev-PHID-DREV-quihhjk453mhnc62genz-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/30346/
State Superseded
Headers show

Comments

phabricator - April 5, 2018, 4:49 a.m.
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  Should have been part of https://phab.mercurial-scm.org/D3085. Feel free to fold it into that commit.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D3120

AFFECTED FILES
  tests/test-children.t

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-devel
phabricator - April 5, 2018, 8:52 a.m.
pulkit accepted this revision.
pulkit added a comment.


  Folded this into https://phab.mercurial-scm.org/D3085.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D3120

To: martinvonz, #hg-reviewers, pulkit
Cc: pulkit, mercurial-devel
phabricator - April 5, 2018, 5:59 p.m.
indygreg added a comment.


  @martinvonz looks like you'll need to mark this as abandoned so it disappears from Phabricator.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D3120

To: martinvonz, #hg-reviewers, pulkit, indygreg
Cc: pulkit, mercurial-devel
phabricator - April 5, 2018, 6 p.m.
martinvonz abandoned this revision.
martinvonz added a comment.


  Folded into https://phab.mercurial-scm.org/D3085

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D3120

To: martinvonz, #hg-reviewers, pulkit, indygreg
Cc: pulkit, mercurial-devel

Patch

diff --git a/tests/test-children.t b/tests/test-children.t
--- a/tests/test-children.t
+++ b/tests/test-children.t
@@ -63,11 +63,11 @@ 
 hg children at revision 2 (other head)
   $ hg children
 
-  $ for i in null 0 1 2 3; do
-  > echo "hg children -r $i"
+  $ for i in null 0 1 2 3 '2^'; do
+  > echo "hg children -r '$i'"
   > hg children -r $i
   > done
-  hg children -r null
+  hg children -r 'null'
   changeset:   0:4df8521a7374
   user:        test
   date:        Thu Jan 01 00:00:00 1970 +0000
@@ -80,20 +80,26 @@ 
   date:        Thu Jan 01 00:00:03 1970 +0000
   summary:     3
   
-  hg children -r 0
+  hg children -r '0'
   changeset:   1:708c093edef0
   user:        test
   date:        Thu Jan 01 00:00:01 1970 +0000
   summary:     1
   
-  hg children -r 1
+  hg children -r '1'
   changeset:   2:8f5eea5023c2
   user:        test
   date:        Thu Jan 01 00:00:02 1970 +0000
   summary:     2
   
-  hg children -r 2
-  hg children -r 3
+  hg children -r '2'
+  hg children -r '3'
+  hg children -r '2^'
+  changeset:   2:8f5eea5023c2
+  user:        test
+  date:        Thu Jan 01 00:00:02 1970 +0000
+  summary:     2
+  
 
 hg children -r 0 file0 (should be 2)
   $ hg children -r 0 file0