tests/test-children.t
changeset 37357 7c8524efd847
parent 24482 3eb9045396b0
equal deleted inserted replaced
37356:004e5c5821b2 37357:7c8524efd847
    61   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
    61   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
    62 
    62 
    63 hg children at revision 2 (other head)
    63 hg children at revision 2 (other head)
    64   $ hg children
    64   $ hg children
    65 
    65 
    66   $ for i in null 0 1 2 3; do
    66   $ for i in null 0 1 2 3 '2^'; do
    67   > echo "hg children -r $i"
    67   > echo "hg children -r '$i'"
    68   > hg children -r $i
    68   > hg children -r $i
    69   > done
    69   > done
    70   hg children -r null
    70   hg children -r 'null'
    71   changeset:   0:4df8521a7374
    71   changeset:   0:4df8521a7374
    72   user:        test
    72   user:        test
    73   date:        Thu Jan 01 00:00:00 1970 +0000
    73   date:        Thu Jan 01 00:00:00 1970 +0000
    74   summary:     0
    74   summary:     0
    75   
    75   
    78   parent:      -1:000000000000
    78   parent:      -1:000000000000
    79   user:        test
    79   user:        test
    80   date:        Thu Jan 01 00:00:03 1970 +0000
    80   date:        Thu Jan 01 00:00:03 1970 +0000
    81   summary:     3
    81   summary:     3
    82   
    82   
    83   hg children -r 0
    83   hg children -r '0'
    84   changeset:   1:708c093edef0
    84   changeset:   1:708c093edef0
    85   user:        test
    85   user:        test
    86   date:        Thu Jan 01 00:00:01 1970 +0000
    86   date:        Thu Jan 01 00:00:01 1970 +0000
    87   summary:     1
    87   summary:     1
    88   
    88   
    89   hg children -r 1
    89   hg children -r '1'
    90   changeset:   2:8f5eea5023c2
    90   changeset:   2:8f5eea5023c2
    91   user:        test
    91   user:        test
    92   date:        Thu Jan 01 00:00:02 1970 +0000
    92   date:        Thu Jan 01 00:00:02 1970 +0000
    93   summary:     2
    93   summary:     2
    94   
    94   
    95   hg children -r 2
    95   hg children -r '2'
    96   hg children -r 3
    96   hg children -r '3'
       
    97   hg children -r '2^'
       
    98   changeset:   2:8f5eea5023c2
       
    99   user:        test
       
   100   date:        Thu Jan 01 00:00:02 1970 +0000
       
   101   summary:     2
       
   102   
    97 
   103 
    98 hg children -r 0 file0 (should be 2)
   104 hg children -r 0 file0 (should be 2)
    99   $ hg children -r 0 file0
   105   $ hg children -r 0 file0
   100   changeset:   2:8f5eea5023c2
   106   changeset:   2:8f5eea5023c2
   101   user:        test
   107   user:        test