tests/test-discovery-obshashrange.t
author Pierre-Yves David <pierre-yves.david@octobus.net>
Tue, 16 May 2017 12:42:50 +0200
changeset 2377 413fe685bfd0
parent 2230 a202f3af890c
child 2378 c143d465c4b8
permissions -rw-r--r--
obshashrange: extend tests We test more situations.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2084
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
     1
test for range based discovery
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
     2
==============================
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
     3
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
     4
  $ . $TESTDIR/testlib/pythonpath.sh
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
     5
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
     6
  $ cat << EOF >> $HGRCPATH
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
     7
  > [extensions]
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
     8
  > hgext3rd.evolve =
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
     9
  > [experimental]
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    10
  > obshashrange=1
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    11
  > verbose-obsolescence-exchange=1
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    12
  > [ui]
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    13
  > logtemplate = "{rev} {node|short} {desc} {tags}\n"
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    14
  > ssh=python "$RUNTESTDIR/dummyssh"
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    15
  > [alias]
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    16
  > debugobsolete=debugobsolete -d '0 0'
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    17
  > EOF
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    18
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    19
  $ getid() {
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    20
  >     hg log --hidden --template '{node}\n' --rev "$1"
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    21
  > }
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    22
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    23
  $ hg init server
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    24
  $ hg clone ssh://user@dummy/server client
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    25
  no changes found
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    26
  updating to branch default
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    27
  0 files updated, 0 files merged, 0 files removed, 0 files unresolved
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    28
  $ cd server
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    29
  $ hg debugbuilddag '.+7'
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    30
  $ hg log -G
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    31
  o  7 4de32a90b66c r7 tip
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    32
  |
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    33
  o  6 f69452c5b1af r6
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    34
  |
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    35
  o  5 c8d03c1b5e94 r5
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    36
  |
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    37
  o  4 bebd167eb94d r4
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    38
  |
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    39
  o  3 2dc09a01254d r3
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    40
  |
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    41
  o  2 01241442b3c2 r2
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    42
  |
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    43
  o  1 66f7d451a68b r1
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    44
  |
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    45
  o  0 1ea73414a91b r0
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    46
  
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    47
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    48
  $ hg debugobsolete aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa `getid 'desc(r1)'`
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    49
  $ hg debugobsolete bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb `getid 'desc(r2)'`
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    50
  $ hg debugobsolete cccccccccccccccccccccccccccccccccccccccc `getid 'desc(r4)'`
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    51
  $ hg debugobsolete dddddddddddddddddddddddddddddddddddddddd `getid 'desc(r5)'`
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    52
  $ hg debugobsolete eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee `getid 'desc(r7)'`
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    53
  $ hg debugobsolete
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    54
  aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 66f7d451a68b85ed82ff5fcc254daf50c74144bd 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    55
  bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb 01241442b3c2bf3211e593b549c655ea65b295e3 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    56
  cccccccccccccccccccccccccccccccccccccccc bebd167eb94d257ace0e814aeb98e6972ed2970d 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    57
  dddddddddddddddddddddddddddddddddddddddd c8d03c1b5e94af74b772900c58259d2e08917735 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    58
  eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee 4de32a90b66cd083ebf3c00b41277aa7abca51dd 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    59
2230
a202f3af890c debugobshashrange: add a --subranges option
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2229
diff changeset
    60
  $ hg debugobshashrange --subranges --rev tip
2228
3b18440cca74 debugstablerange: improve output spacing
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2084
diff changeset
    61
           rev         node        index         size        depth      obshash
3b18440cca74 debugstablerange: improve output spacing
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2084
diff changeset
    62
             7 4de32a90b66c            0            8            8 38d1e7ad86ea
3b18440cca74 debugstablerange: improve output spacing
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2084
diff changeset
    63
             3 2dc09a01254d            0            4            4 000000000000
3b18440cca74 debugstablerange: improve output spacing
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2084
diff changeset
    64
             7 4de32a90b66c            4            4            8 38d1e7ad86ea
3b18440cca74 debugstablerange: improve output spacing
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2084
diff changeset
    65
             3 2dc09a01254d            2            2            4 000000000000
3b18440cca74 debugstablerange: improve output spacing
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2084
diff changeset
    66
             7 4de32a90b66c            6            2            8 033544c939f0
3b18440cca74 debugstablerange: improve output spacing
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2084
diff changeset
    67
             1 66f7d451a68b            0            2            2 17ff8dd63509
3b18440cca74 debugstablerange: improve output spacing
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2084
diff changeset
    68
             5 c8d03c1b5e94            4            2            6 57f6cf3757a2
3b18440cca74 debugstablerange: improve output spacing
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2084
diff changeset
    69
             2 01241442b3c2            2            1            3 1ed3c61fb39a
3b18440cca74 debugstablerange: improve output spacing
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2084
diff changeset
    70
             0 1ea73414a91b            0            1            1 000000000000
3b18440cca74 debugstablerange: improve output spacing
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2084
diff changeset
    71
             3 2dc09a01254d            3            1            4 000000000000
3b18440cca74 debugstablerange: improve output spacing
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2084
diff changeset
    72
             7 4de32a90b66c            7            1            8 033544c939f0
3b18440cca74 debugstablerange: improve output spacing
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2084
diff changeset
    73
             1 66f7d451a68b            1            1            2 17ff8dd63509
3b18440cca74 debugstablerange: improve output spacing
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2084
diff changeset
    74
             4 bebd167eb94d            4            1            5 bbe4d7fe27a8
3b18440cca74 debugstablerange: improve output spacing
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2084
diff changeset
    75
             5 c8d03c1b5e94            5            1            6 446c2dc3bce5
3b18440cca74 debugstablerange: improve output spacing
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2084
diff changeset
    76
             6 f69452c5b1af            6            1            7 000000000000
2084
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    77
  $ cd .. 
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    78
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    79
testing simple pull
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    80
===================
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    81
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    82
  $ cd client
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    83
  $ hg pull --rev 4
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    84
  pulling from ssh://user@dummy/server
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    85
  adding changesets
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    86
  adding manifests
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    87
  adding file changes
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    88
  added 5 changesets with 0 changes to 0 files
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    89
  3 new obsolescence markers
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    90
  (run 'hg update' to get a working copy)
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    91
  $ hg -R ../server/ debugobsolete --rev ::4 | sort
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    92
  aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 66f7d451a68b85ed82ff5fcc254daf50c74144bd 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    93
  bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb 01241442b3c2bf3211e593b549c655ea65b295e3 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    94
  cccccccccccccccccccccccccccccccccccccccc bebd167eb94d257ace0e814aeb98e6972ed2970d 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    95
  $ hg debugobsolete | sort
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    96
  aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 66f7d451a68b85ed82ff5fcc254daf50c74144bd 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    97
  bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb 01241442b3c2bf3211e593b549c655ea65b295e3 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    98
  cccccccccccccccccccccccccccccccccccccccc bebd167eb94d257ace0e814aeb98e6972ed2970d 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
    99
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   100
testing simple push
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   101
===================
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   102
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   103
  $ hg up
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   104
  0 files updated, 0 files merged, 0 files removed, 0 files unresolved
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   105
  $ echo foo > foo
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   106
  $ hg add foo
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   107
  $ hg commit -m foo
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   108
  $ hg debugobsolete ffffffffffffffffffffffffffffffffffffffff `getid '.'`
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   109
  $ hg push -f
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   110
  pushing to ssh://user@dummy/server
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   111
  searching for changes
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   112
  OBSEXC: computing relevant nodes
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   113
  OBSEXC: looking for common markers in 6 nodes
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   114
  OBSEXC: computing markers relevant to 1 nodes
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   115
  remote: adding changesets
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   116
  remote: adding manifests
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   117
  remote: adding file changes
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   118
  remote: added 1 changesets with 1 changes to 1 files (+1 heads)
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   119
  remote: 1 new obsolescence markers
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   120
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   121
testing push with extra local markers
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   122
=====================================
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   123
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   124
  $ hg log -G
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   125
  @  5 45f8b879de92 foo tip
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   126
  |
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   127
  o  4 bebd167eb94d r4
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   128
  |
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   129
  o  3 2dc09a01254d r3
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   130
  |
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   131
  o  2 01241442b3c2 r2
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   132
  |
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   133
  o  1 66f7d451a68b r1
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   134
  |
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   135
  o  0 1ea73414a91b r0
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   136
  
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   137
  $ hg debugobsolete 111111111111111aaaaaaaaa1111111111111111 `getid 'desc(r1)'`
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   138
  $ hg debugobsolete 22222222222222222bbbbbbbbbbbbb2222222222 `getid 'desc(r3)'`
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   139
  $ hg push
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   140
  pushing to ssh://user@dummy/server
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   141
  searching for changes
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   142
  OBSEXC: computing relevant nodes
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   143
  OBSEXC: looking for common markers in 6 nodes
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   144
  OBSEXC: computing markers relevant to 2 nodes
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   145
  no changes found
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   146
  remote: 2 new obsolescence markers
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   147
  [1]
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   148
  $ hg -R ../server/ debugobsolete --rev ::tip | sort
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   149
  111111111111111aaaaaaaaa1111111111111111 66f7d451a68b85ed82ff5fcc254daf50c74144bd 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   150
  22222222222222222bbbbbbbbbbbbb2222222222 2dc09a01254db841290af0538aa52f6f52c776e3 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   151
  aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 66f7d451a68b85ed82ff5fcc254daf50c74144bd 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   152
  bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb 01241442b3c2bf3211e593b549c655ea65b295e3 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   153
  cccccccccccccccccccccccccccccccccccccccc bebd167eb94d257ace0e814aeb98e6972ed2970d 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   154
  ffffffffffffffffffffffffffffffffffffffff 45f8b879de922f6a6e620ba04205730335b6fc7e 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   155
  $ hg debugobsolete | sort
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   156
  111111111111111aaaaaaaaa1111111111111111 66f7d451a68b85ed82ff5fcc254daf50c74144bd 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   157
  22222222222222222bbbbbbbbbbbbb2222222222 2dc09a01254db841290af0538aa52f6f52c776e3 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   158
  aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 66f7d451a68b85ed82ff5fcc254daf50c74144bd 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   159
  bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb 01241442b3c2bf3211e593b549c655ea65b295e3 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   160
  cccccccccccccccccccccccccccccccccccccccc bebd167eb94d257ace0e814aeb98e6972ed2970d 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   161
  ffffffffffffffffffffffffffffffffffffffff 45f8b879de922f6a6e620ba04205730335b6fc7e 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   162
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   163
testing pull with extra remote markers
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   164
=====================================
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   165
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   166
  $ hg log -G
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   167
  @  5 45f8b879de92 foo tip
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   168
  |
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   169
  o  4 bebd167eb94d r4
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   170
  |
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   171
  o  3 2dc09a01254d r3
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   172
  |
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   173
  o  2 01241442b3c2 r2
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   174
  |
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   175
  o  1 66f7d451a68b r1
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   176
  |
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   177
  o  0 1ea73414a91b r0
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   178
  
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   179
  $ hg -R ../server debugobsolete aaaaaaa11111111aaaaaaaaa1111111111111111 `getid 'desc(r1)'`
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   180
  $ hg -R ../server debugobsolete bbbbbbb2222222222bbbbbbbbbbbbb2222222222 `getid 'desc(r4)'`
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   181
  $ hg pull -r 6
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   182
  pulling from ssh://user@dummy/server
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   183
  searching for changes
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   184
  OBSEXC: looking for common markers in 6 nodes
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   185
  OBSEXC: request obsmarkers for 2 common nodes
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   186
  adding changesets
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   187
  adding manifests
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   188
  adding file changes
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   189
  added 2 changesets with 0 changes to 0 files (+1 heads)
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   190
  3 new obsolescence markers
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   191
  (run 'hg heads' to see heads, 'hg merge' to merge)
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   192
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   193
  $ hg -R ../server/ debugobsolete --rev '::6' | sort
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   194
  111111111111111aaaaaaaaa1111111111111111 66f7d451a68b85ed82ff5fcc254daf50c74144bd 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   195
  22222222222222222bbbbbbbbbbbbb2222222222 2dc09a01254db841290af0538aa52f6f52c776e3 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   196
  aaaaaaa11111111aaaaaaaaa1111111111111111 66f7d451a68b85ed82ff5fcc254daf50c74144bd 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   197
  aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 66f7d451a68b85ed82ff5fcc254daf50c74144bd 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   198
  bbbbbbb2222222222bbbbbbbbbbbbb2222222222 bebd167eb94d257ace0e814aeb98e6972ed2970d 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   199
  bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb 01241442b3c2bf3211e593b549c655ea65b295e3 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   200
  cccccccccccccccccccccccccccccccccccccccc bebd167eb94d257ace0e814aeb98e6972ed2970d 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   201
  dddddddddddddddddddddddddddddddddddddddd c8d03c1b5e94af74b772900c58259d2e08917735 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   202
  $ hg debugobsolete --rev '::6' | sort
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   203
  111111111111111aaaaaaaaa1111111111111111 66f7d451a68b85ed82ff5fcc254daf50c74144bd 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   204
  22222222222222222bbbbbbbbbbbbb2222222222 2dc09a01254db841290af0538aa52f6f52c776e3 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   205
  aaaaaaa11111111aaaaaaaaa1111111111111111 66f7d451a68b85ed82ff5fcc254daf50c74144bd 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   206
  aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 66f7d451a68b85ed82ff5fcc254daf50c74144bd 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   207
  bbbbbbb2222222222bbbbbbbbbbbbb2222222222 bebd167eb94d257ace0e814aeb98e6972ed2970d 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   208
  bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb 01241442b3c2bf3211e593b549c655ea65b295e3 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   209
  cccccccccccccccccccccccccccccccccccccccc bebd167eb94d257ace0e814aeb98e6972ed2970d 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   210
  dddddddddddddddddddddddddddddddddddddddd c8d03c1b5e94af74b772900c58259d2e08917735 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
b1f029dcf573 discovery: implement some range based discovery
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff changeset
   211
2377
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   212
Test cache behavior
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   213
===================
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   214
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   215
Adding markers affecting already used range:
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   216
--------------------------------------------
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   217
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   218
  $ hg debugobshashrange --subranges --rev 'heads(all())'
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   219
           rev         node        index         size        depth      obshash
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   220
             7 f69452c5b1af            0            7            7 000000000000
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   221
             5 45f8b879de92            0            6            6 1643971dbe2d
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   222
             3 2dc09a01254d            0            4            4 6be48f31976a
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   223
             7 f69452c5b1af            4            3            7 000000000000
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   224
             3 2dc09a01254d            2            2            4 9522069ae085
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   225
             5 45f8b879de92            4            2            6 9c26c72819c0
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   226
             1 66f7d451a68b            0            2            2 853c77a32154
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   227
             6 c8d03c1b5e94            4            2            6 ec8a3e92c525
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   228
             2 01241442b3c2            2            1            3 1ed3c61fb39a
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   229
             0 1ea73414a91b            0            1            1 000000000000
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   230
             3 2dc09a01254d            3            1            4 8a2acf8e1cde
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   231
             5 45f8b879de92            5            1            6 1a0c08180b65
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   232
             1 66f7d451a68b            1            1            2 853c77a32154
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   233
             4 bebd167eb94d            4            1            5 20a2cc572e4b
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   234
             6 c8d03c1b5e94            5            1            6 446c2dc3bce5
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   235
             7 f69452c5b1af            6            1            7 000000000000
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   236
  $ hg -R ../server debugobsolete aaaa333333333aaaaa333a3a3a3a3a3a3a3a3a3a `getid 'desc(r1)'`
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   237
  $ hg -R ../server debugobsolete bb4b4b4b4b4b4b4b44b4b4b4b4b4b4b4b4b4b4b4 `getid 'desc(r3)'`
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   238
  $ hg pull -r `getid 'desc(r6)'`
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   239
  pulling from ssh://user@dummy/server
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   240
  no changes found
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   241
  OBSEXC: looking for common markers in 7 nodes
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   242
  OBSEXC: request obsmarkers for 2 common nodes
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   243
  2 new obsolescence markers
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   244
  $ hg debugobshashrange --subranges --rev 'heads(all())'
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   245
           rev         node        index         size        depth      obshash
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   246
             7 f69452c5b1af            0            7            7 000000000000
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   247
             5 45f8b879de92            0            6            6 b405cb0bdc2b
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   248
             3 2dc09a01254d            0            4            4 8932bf980bb4
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   249
             7 f69452c5b1af            4            3            7 000000000000
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   250
             3 2dc09a01254d            2            2            4 ce1937ca1278
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   251
             5 45f8b879de92            4            2            6 9c26c72819c0
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   252
             1 66f7d451a68b            0            2            2 327c7dd73d29
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   253
             6 c8d03c1b5e94            4            2            6 ec8a3e92c525
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   254
             2 01241442b3c2            2            1            3 1ed3c61fb39a
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   255
             0 1ea73414a91b            0            1            1 000000000000
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   256
             3 2dc09a01254d            3            1            4 26f996446ecb
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   257
             5 45f8b879de92            5            1            6 1a0c08180b65
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   258
             1 66f7d451a68b            1            1            2 327c7dd73d29
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   259
             4 bebd167eb94d            4            1            5 20a2cc572e4b
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   260
             6 c8d03c1b5e94            5            1            6 446c2dc3bce5
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   261
             7 f69452c5b1af            6            1            7 000000000000
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   262
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   263
Adding prune markers on existing changeset
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   264
------------------------------------------
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   265
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   266
  $ hg -R ../server debugobsolete --record-parents `getid 'desc(foo)'`
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   267
  $ hg pull -r `getid 'desc(r4)'`
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   268
  pulling from ssh://user@dummy/server
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   269
  no changes found
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   270
  OBSEXC: looking for common markers in 5 nodes
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   271
  OBSEXC: request obsmarkers for 1 common nodes
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   272
  1 new obsolescence markers
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   273
  $ hg debugobshashrange --subranges --rev 'heads(all())'
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   274
           rev         node        index         size        depth      obshash
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   275
             7 f69452c5b1af            0            7            7 000000000000
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   276
             5 45f8b879de92            0            6            6 b8a4206b0fc6
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   277
             3 2dc09a01254d            0            4            4 8932bf980bb4
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   278
             7 f69452c5b1af            4            3            7 000000000000
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   279
             3 2dc09a01254d            2            2            4 ce1937ca1278
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   280
             5 45f8b879de92            4            2            6 31fc49d36a59
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   281
             1 66f7d451a68b            0            2            2 327c7dd73d29
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   282
             6 c8d03c1b5e94            4            2            6 89755fd39e6d
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   283
             2 01241442b3c2            2            1            3 1ed3c61fb39a
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   284
             0 1ea73414a91b            0            1            1 000000000000
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   285
             3 2dc09a01254d            3            1            4 26f996446ecb
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   286
             5 45f8b879de92            5            1            6 1a0c08180b65
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   287
             1 66f7d451a68b            1            1            2 327c7dd73d29
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   288
             4 bebd167eb94d            4            1            5 b21465ecb790
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   289
             6 c8d03c1b5e94            5            1            6 446c2dc3bce5
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   290
             7 f69452c5b1af            6            1            7 000000000000
413fe685bfd0 obshashrange: extend tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2230
diff changeset
   291