tests/test-exchange-D2.t
branchmercurial-4.0
changeset 2278 2db189baf8b7
parent 2260 e200dbfb4515
parent 2277 61d885899466
child 2279 347849e17876
child 2318 523855eb28c1
equal deleted inserted replaced
2260:e200dbfb4515 2278:2db189baf8b7
     1 
       
     2 
       
     3 Initial setup
       
     4 
       
     5   $ . $TESTDIR/testlib/exchange-util.sh
       
     6 
       
     7 === D.2 missing prune target (prune in "pushed set") ===
       
     8 
       
     9 {{{
       
    10 }}}
       
    11 
       
    12 Marker exist from:
       
    13 
       
    14  * A' succeed to A
       
    15  * A' (prune)
       
    16 
       
    17 Command run:
       
    18 
       
    19  * hg push
       
    20 
       
    21 Expected exchange:
       
    22 
       
    23  * `A ø⇠o A'`
       
    24  * A' (prune)
       
    25 
       
    26 
       
    27   $ setuprepos D.2
       
    28   creating test repo for test case D.2
       
    29   - pulldest
       
    30   - main
       
    31   - pushdest
       
    32   cd into `main` and proceed with env setup
       
    33   $ cd main
       
    34   $ mkcommit A0
       
    35   $ hg up -q 0
       
    36   $ mkcommit A1
       
    37   created new head
       
    38   $ hg debugobsolete `getid 'desc(A0)'` `getid 'desc(A1)'`
       
    39   $ hg prune --date '0 0' .
       
    40   0 files updated, 0 files merged, 1 files removed, 0 files unresolved
       
    41   working directory now at a9bdc8b26820
       
    42   1 changesets pruned
       
    43   $ hg strip --hidden -q 'desc(A1)'
       
    44   $ hg log -G --hidden
       
    45   x  28b51eb45704 (draft): A0
       
    46   |
       
    47   @  a9bdc8b26820 (public): O
       
    48   
       
    49   $ hg debugobsolete
       
    50   28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
       
    51   e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
       
    52   $ hg debugobsrelsethashtree
       
    53   a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04 554c0b12f7d9fff20cb904c26e12eee337e3309c
       
    54   28b51eb45704506b5c603decd6bf7ac5e0f6a52f 5c81c58ce0a8ad61dd9cf4c6949846b5990af30d
       
    55   $ hg debugobshashrange --subranges --rev 'head()'
       
    56            rev         node        index         size        depth      obshash
       
    57              0 a9bdc8b26820            0            1            1 554c0b12f7d9
       
    58   $ cd ..
       
    59   $ cd ..
       
    60 
       
    61 Actual Test
       
    62 -------------------------------------
       
    63 
       
    64   $ dotest D.2
       
    65   ## Running testcase D.2
       
    66   ## initial state
       
    67   # obstore: main
       
    68   28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
       
    69   e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
       
    70   # obstore: pushdest
       
    71   # obstore: pulldest
       
    72   ## pushing from main to pushdest
       
    73   pushing to pushdest
       
    74   searching for changes
       
    75   no changes found
       
    76   remote: 2 new obsolescence markers
       
    77   ## post push state
       
    78   # obstore: main
       
    79   28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
       
    80   e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
       
    81   # obstore: pushdest
       
    82   28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
       
    83   e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
       
    84   # obstore: pulldest
       
    85   ## pulling from main into pulldest
       
    86   pulling from main
       
    87   searching for changes
       
    88   no changes found
       
    89   2 new obsolescence markers
       
    90   ## post pull state
       
    91   # obstore: main
       
    92   28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
       
    93   e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
       
    94   # obstore: pushdest
       
    95   28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
       
    96   e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
       
    97   # obstore: pulldest
       
    98   28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
       
    99   e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
       
   100