tests/test-issue6528.t
author Raphaël Gomès <rgomes@octobus.net>
Wed, 20 Oct 2021 16:54:43 +0200
branchstable
changeset 47897 f6b045910d82
parent 47817 2813d406b036
child 48384 b7fde9237c92
permissions -rw-r--r--
pyoxidizer: force pip to not use pep517 in order to be able to install hg Mercurial is not (yet) a pep517 package, but the presence of a pyproject.toml file tells newer-ish versions of pip that it should be one. This is related to 58fe6d127a01, and fixes pyoxidizer builds for the Heptapod CI. Differential Revision: https://phab.mercurial-scm.org/D11710
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
47051
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
     1
===============================================================
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
     2
Test non-regression on the corruption associated with issue6528
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
     3
===============================================================
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
     4
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
     5
Setup
47810
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
     6
=====
47051
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
     7
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
     8
  $ hg init base-repo
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
     9
  $ cd base-repo
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    10
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    11
  $ cat <<EOF > a.txt
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    12
  > 1
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    13
  > 2
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    14
  > 3
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    15
  > 4
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    16
  > 5
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    17
  > 6
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    18
  > EOF
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    19
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    20
  $ hg add a.txt
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    21
  $ hg commit -m 'c_base_c - create a.txt'
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    22
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    23
Modify a.txt
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    24
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    25
  $ sed -e 's/1/foo/' a.txt > a.tmp; mv a.tmp a.txt
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    26
  $ hg commit -m 'c_modify_c - modify a.txt'
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    27
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    28
Modify and rename a.txt to b.txt
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    29
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    30
  $ hg up -r "desc('c_base_c')"
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    31
  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    32
  $ sed -e 's/6/bar/' a.txt > a.tmp; mv a.tmp a.txt
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    33
  $ hg mv a.txt b.txt
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    34
  $ hg commit -m 'c_rename_c - rename and modify a.txt to b.txt'
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    35
  created new head
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    36
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    37
Merge each branch
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    38
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    39
  $ hg merge -r "desc('c_modify_c')"
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    40
  merging b.txt and a.txt to b.txt
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    41
  0 files updated, 1 files merged, 0 files removed, 0 files unresolved
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    42
  (branch merge, don't forget to commit)
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    43
  $ hg commit -m 'c_merge_c: commit merge'
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    44
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    45
  $ hg debugrevlogindex b.txt
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    46
     rev linkrev nodeid       p1           p2
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    47
       0       2 05b806ebe5ea 000000000000 000000000000
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    48
       1       3 a58b36ad6b65 000000000000 05b806ebe5ea
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    49
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    50
Check commit Graph
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    51
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    52
  $ hg log -G
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    53
  @    changeset:   3:a1cc2bdca0aa
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    54
  |\   tag:         tip
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    55
  | |  parent:      2:615c6ccefd15
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    56
  | |  parent:      1:373d507f4667
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    57
  | |  user:        test
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    58
  | |  date:        Thu Jan 01 00:00:00 1970 +0000
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    59
  | |  summary:     c_merge_c: commit merge
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    60
  | |
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    61
  | o  changeset:   2:615c6ccefd15
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    62
  | |  parent:      0:f5a5a568022f
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    63
  | |  user:        test
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    64
  | |  date:        Thu Jan 01 00:00:00 1970 +0000
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    65
  | |  summary:     c_rename_c - rename and modify a.txt to b.txt
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    66
  | |
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    67
  o |  changeset:   1:373d507f4667
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    68
  |/   user:        test
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    69
  |    date:        Thu Jan 01 00:00:00 1970 +0000
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    70
  |    summary:     c_modify_c - modify a.txt
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    71
  |
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    72
  o  changeset:   0:f5a5a568022f
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    73
     user:        test
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    74
     date:        Thu Jan 01 00:00:00 1970 +0000
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    75
     summary:     c_base_c - create a.txt
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    76
  
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    77
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    78
  $ hg cat -r . b.txt
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    79
  foo
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    80
  2
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    81
  3
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    82
  4
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    83
  5
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    84
  bar
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    85
  $ cat b.txt
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    86
  foo
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    87
  2
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    88
  3
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    89
  4
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    90
  5
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    91
  bar
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    92
  $ cd ..
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    93
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    94
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    95
Check the lack of corruption
47810
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
    96
============================
47051
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    97
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    98
  $ hg clone --pull base-repo cloned
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
    99
  requesting all changes
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   100
  adding changesets
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   101
  adding manifests
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   102
  adding file changes
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   103
  added 4 changesets with 4 changes to 2 files
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   104
  new changesets f5a5a568022f:a1cc2bdca0aa
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   105
  updating to branch default
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   106
  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   107
  $ cd cloned
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   108
  $ hg up -r "desc('c_merge_c')"
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   109
  0 files updated, 0 files merged, 0 files removed, 0 files unresolved
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   110
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   111
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   112
Status is buggy, even with debugrebuilddirstate
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   113
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   114
  $ hg cat -r . b.txt
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   115
  foo
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   116
  2
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   117
  3
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   118
  4
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   119
  5
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   120
  bar
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   121
  $ cat b.txt
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   122
  foo
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   123
  2
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   124
  3
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   125
  4
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   126
  5
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   127
  bar
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   128
  $ hg status
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   129
  $ hg debugrebuilddirstate
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   130
  $ hg status
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   131
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   132
the history was altered
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   133
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   134
in theory p1/p2 order does not matter but in practice p1 == nullid is used as a
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   135
marker that some metadata are present and should be fetched.
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   136
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   137
  $ hg debugrevlogindex b.txt
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   138
     rev linkrev nodeid       p1           p2
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   139
       0       2 05b806ebe5ea 000000000000 000000000000
47052
411dc27fd9fd corruption: backout changeset 49fd21f32695 (issue6528)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47051
diff changeset
   140
       1       3 a58b36ad6b65 000000000000 05b806ebe5ea
47051
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   141
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   142
Check commit Graph
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   143
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   144
  $ hg log -G
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   145
  @    changeset:   3:a1cc2bdca0aa
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   146
  |\   tag:         tip
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   147
  | |  parent:      2:615c6ccefd15
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   148
  | |  parent:      1:373d507f4667
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   149
  | |  user:        test
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   150
  | |  date:        Thu Jan 01 00:00:00 1970 +0000
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   151
  | |  summary:     c_merge_c: commit merge
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   152
  | |
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   153
  | o  changeset:   2:615c6ccefd15
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   154
  | |  parent:      0:f5a5a568022f
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   155
  | |  user:        test
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   156
  | |  date:        Thu Jan 01 00:00:00 1970 +0000
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   157
  | |  summary:     c_rename_c - rename and modify a.txt to b.txt
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   158
  | |
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   159
  o |  changeset:   1:373d507f4667
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   160
  |/   user:        test
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   161
  |    date:        Thu Jan 01 00:00:00 1970 +0000
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   162
  |    summary:     c_modify_c - modify a.txt
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   163
  |
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   164
  o  changeset:   0:f5a5a568022f
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   165
     user:        test
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   166
     date:        Thu Jan 01 00:00:00 1970 +0000
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   167
     summary:     c_base_c - create a.txt
bd0a2a919bf8 corruption: add a test for issue6528
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
   168
  
47810
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   169
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   170
Test the command that fixes the issue
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   171
=====================================
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   172
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   173
Restore a broken repository with multiple broken revisions and a filename that
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   174
would get encoded to test the `report` options.
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   175
It's a tarball because unbundle might magically fix the issue later.
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   176
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   177
  $ cd ..
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   178
  $ mkdir repo-to-fix
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   179
  $ cd repo-to-fix
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   180
#if windows
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   181
tar interprets `:` in paths (like `C:`) as being remote, force local on Windows
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   182
only since some versions of tar don't have this flag.
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   183
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   184
  $ tar --force-local -xf $TESTDIR/bundles/issue6528.tar
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   185
#else
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   186
  $ tar xf $TESTDIR/bundles/issue6528.tar
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   187
#endif
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   188
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   189
Check that the issue is present
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   190
  $ hg st
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   191
  M D.txt
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   192
  M b.txt
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   193
  $ hg debugrevlogindex b.txt
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   194
     rev linkrev nodeid       p1           p2
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   195
       0       2 05b806ebe5ea 000000000000 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   196
       1       3 a58b36ad6b65 05b806ebe5ea 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   197
       2       6 216a5fe8b8ed 000000000000 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   198
       3       7 ea4f2f2463cc 216a5fe8b8ed 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   199
  $ hg debugrevlogindex D.txt
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   200
     rev linkrev nodeid       p1           p2
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   201
       0       6 2a8d3833f2fb 000000000000 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   202
       1       7 2a80419dfc31 2a8d3833f2fb 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   203
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   204
Dry-run the fix
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   205
  $ hg debug-repair-issue6528 --dry-run
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   206
  found affected revision 1 for filelog 'data/D.txt.i'
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   207
  found affected revision 1 for filelog 'data/b.txt.i'
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   208
  found affected revision 3 for filelog 'data/b.txt.i'
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   209
  $ hg st
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   210
  M D.txt
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   211
  M b.txt
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   212
  $ hg debugrevlogindex b.txt
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   213
     rev linkrev nodeid       p1           p2
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   214
       0       2 05b806ebe5ea 000000000000 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   215
       1       3 a58b36ad6b65 05b806ebe5ea 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   216
       2       6 216a5fe8b8ed 000000000000 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   217
       3       7 ea4f2f2463cc 216a5fe8b8ed 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   218
  $ hg debugrevlogindex D.txt
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   219
     rev linkrev nodeid       p1           p2
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   220
       0       6 2a8d3833f2fb 000000000000 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   221
       1       7 2a80419dfc31 2a8d3833f2fb 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   222
47812
855463b5fe49 debugcommands: add a `--paranoid` option to `debug-repair-issue-6528`
Raphaël Gomès <rgomes@octobus.net>
parents: 47810
diff changeset
   223
Test the --paranoid option
855463b5fe49 debugcommands: add a `--paranoid` option to `debug-repair-issue-6528`
Raphaël Gomès <rgomes@octobus.net>
parents: 47810
diff changeset
   224
  $ hg debug-repair-issue6528 --dry-run --paranoid
855463b5fe49 debugcommands: add a `--paranoid` option to `debug-repair-issue-6528`
Raphaël Gomès <rgomes@octobus.net>
parents: 47810
diff changeset
   225
  found affected revision 1 for filelog 'data/D.txt.i'
855463b5fe49 debugcommands: add a `--paranoid` option to `debug-repair-issue-6528`
Raphaël Gomès <rgomes@octobus.net>
parents: 47810
diff changeset
   226
  found affected revision 1 for filelog 'data/b.txt.i'
855463b5fe49 debugcommands: add a `--paranoid` option to `debug-repair-issue-6528`
Raphaël Gomès <rgomes@octobus.net>
parents: 47810
diff changeset
   227
  found affected revision 3 for filelog 'data/b.txt.i'
855463b5fe49 debugcommands: add a `--paranoid` option to `debug-repair-issue-6528`
Raphaël Gomès <rgomes@octobus.net>
parents: 47810
diff changeset
   228
  $ hg st
855463b5fe49 debugcommands: add a `--paranoid` option to `debug-repair-issue-6528`
Raphaël Gomès <rgomes@octobus.net>
parents: 47810
diff changeset
   229
  M D.txt
855463b5fe49 debugcommands: add a `--paranoid` option to `debug-repair-issue-6528`
Raphaël Gomès <rgomes@octobus.net>
parents: 47810
diff changeset
   230
  M b.txt
855463b5fe49 debugcommands: add a `--paranoid` option to `debug-repair-issue-6528`
Raphaël Gomès <rgomes@octobus.net>
parents: 47810
diff changeset
   231
  $ hg debugrevlogindex b.txt
855463b5fe49 debugcommands: add a `--paranoid` option to `debug-repair-issue-6528`
Raphaël Gomès <rgomes@octobus.net>
parents: 47810
diff changeset
   232
     rev linkrev nodeid       p1           p2
855463b5fe49 debugcommands: add a `--paranoid` option to `debug-repair-issue-6528`
Raphaël Gomès <rgomes@octobus.net>
parents: 47810
diff changeset
   233
       0       2 05b806ebe5ea 000000000000 000000000000
855463b5fe49 debugcommands: add a `--paranoid` option to `debug-repair-issue-6528`
Raphaël Gomès <rgomes@octobus.net>
parents: 47810
diff changeset
   234
       1       3 a58b36ad6b65 05b806ebe5ea 000000000000
855463b5fe49 debugcommands: add a `--paranoid` option to `debug-repair-issue-6528`
Raphaël Gomès <rgomes@octobus.net>
parents: 47810
diff changeset
   235
       2       6 216a5fe8b8ed 000000000000 000000000000
855463b5fe49 debugcommands: add a `--paranoid` option to `debug-repair-issue-6528`
Raphaël Gomès <rgomes@octobus.net>
parents: 47810
diff changeset
   236
       3       7 ea4f2f2463cc 216a5fe8b8ed 000000000000
855463b5fe49 debugcommands: add a `--paranoid` option to `debug-repair-issue-6528`
Raphaël Gomès <rgomes@octobus.net>
parents: 47810
diff changeset
   237
  $ hg debugrevlogindex D.txt
855463b5fe49 debugcommands: add a `--paranoid` option to `debug-repair-issue-6528`
Raphaël Gomès <rgomes@octobus.net>
parents: 47810
diff changeset
   238
     rev linkrev nodeid       p1           p2
855463b5fe49 debugcommands: add a `--paranoid` option to `debug-repair-issue-6528`
Raphaël Gomès <rgomes@octobus.net>
parents: 47810
diff changeset
   239
       0       6 2a8d3833f2fb 000000000000 000000000000
855463b5fe49 debugcommands: add a `--paranoid` option to `debug-repair-issue-6528`
Raphaël Gomès <rgomes@octobus.net>
parents: 47810
diff changeset
   240
       1       7 2a80419dfc31 2a8d3833f2fb 000000000000
855463b5fe49 debugcommands: add a `--paranoid` option to `debug-repair-issue-6528`
Raphaël Gomès <rgomes@octobus.net>
parents: 47810
diff changeset
   241
47810
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   242
Run the fix
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   243
  $ hg debug-repair-issue6528
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   244
  found affected revision 1 for filelog 'data/D.txt.i'
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   245
  repaired revision 1 of 'filelog data/D.txt.i'
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   246
  found affected revision 1 for filelog 'data/b.txt.i'
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   247
  found affected revision 3 for filelog 'data/b.txt.i'
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   248
  repaired revision 1 of 'filelog data/b.txt.i'
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   249
  repaired revision 3 of 'filelog data/b.txt.i'
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   250
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   251
Check that the fix worked and that running it twice does nothing
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   252
  $ hg st
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   253
  $ hg debugrevlogindex b.txt
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   254
     rev linkrev nodeid       p1           p2
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   255
       0       2 05b806ebe5ea 000000000000 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   256
       1       3 a58b36ad6b65 000000000000 05b806ebe5ea
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   257
       2       6 216a5fe8b8ed 000000000000 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   258
       3       7 ea4f2f2463cc 000000000000 216a5fe8b8ed
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   259
  $ hg debugrevlogindex D.txt
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   260
     rev linkrev nodeid       p1           p2
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   261
       0       6 2a8d3833f2fb 000000000000 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   262
       1       7 2a80419dfc31 000000000000 2a8d3833f2fb
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   263
  $ hg debug-repair-issue6528
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   264
  no affected revisions were found
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   265
  $ hg st
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   266
  $ hg debugrevlogindex b.txt
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   267
     rev linkrev nodeid       p1           p2
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   268
       0       2 05b806ebe5ea 000000000000 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   269
       1       3 a58b36ad6b65 000000000000 05b806ebe5ea
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   270
       2       6 216a5fe8b8ed 000000000000 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   271
       3       7 ea4f2f2463cc 000000000000 216a5fe8b8ed
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   272
  $ hg debugrevlogindex D.txt
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   273
     rev linkrev nodeid       p1           p2
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   274
       0       6 2a8d3833f2fb 000000000000 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   275
       1       7 2a80419dfc31 000000000000 2a8d3833f2fb
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   276
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   277
Try the using the report options
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   278
--------------------------------
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   279
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   280
  $ cd ..
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   281
  $ mkdir repo-to-fix-report
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   282
  $ cd repo-to-fix
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   283
#if windows
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   284
tar interprets `:` in paths (like `C:`) as being remote, force local on Windows
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   285
only since some versions of tar don't have this flag.
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   286
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   287
  $ tar --force-local -xf $TESTDIR/bundles/issue6528.tar
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   288
#else
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   289
  $ tar xf $TESTDIR/bundles/issue6528.tar
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   290
#endif
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   291
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   292
  $ hg debug-repair-issue6528 --to-report $TESTTMP/report.txt
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   293
  found affected revision 1 for filelog 'data/D.txt.i'
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   294
  found affected revision 1 for filelog 'data/b.txt.i'
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   295
  found affected revision 3 for filelog 'data/b.txt.i'
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   296
  $ cat $TESTTMP/report.txt
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   297
  2a80419dfc31d7dfb308ac40f3f138282de7d73b D.txt
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   298
  a58b36ad6b6545195952793099613c2116f3563b,ea4f2f2463cca5b29ddf3461012b8ce5c6dac175 b.txt
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   299
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   300
  $ hg debug-repair-issue6528 --from-report $TESTTMP/report.txt --dry-run
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   301
  loading report file '$TESTTMP/report.txt'
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   302
  found affected revision 1 for filelog 'D.txt'
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   303
  found affected revision 1 for filelog 'b.txt'
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   304
  found affected revision 3 for filelog 'b.txt'
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   305
  $ hg st
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   306
  M D.txt
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   307
  M b.txt
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   308
  $ hg debugrevlogindex b.txt
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   309
     rev linkrev nodeid       p1           p2
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   310
       0       2 05b806ebe5ea 000000000000 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   311
       1       3 a58b36ad6b65 05b806ebe5ea 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   312
       2       6 216a5fe8b8ed 000000000000 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   313
       3       7 ea4f2f2463cc 216a5fe8b8ed 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   314
  $ hg debugrevlogindex D.txt
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   315
     rev linkrev nodeid       p1           p2
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   316
       0       6 2a8d3833f2fb 000000000000 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   317
       1       7 2a80419dfc31 2a8d3833f2fb 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   318
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   319
  $ hg debug-repair-issue6528 --from-report $TESTTMP/report.txt
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   320
  loading report file '$TESTTMP/report.txt'
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   321
  found affected revision 1 for filelog 'D.txt'
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   322
  repaired revision 1 of 'filelog data/D.txt.i'
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   323
  found affected revision 1 for filelog 'b.txt'
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   324
  found affected revision 3 for filelog 'b.txt'
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   325
  repaired revision 1 of 'filelog data/b.txt.i'
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   326
  repaired revision 3 of 'filelog data/b.txt.i'
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   327
  $ hg st
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   328
  $ hg debugrevlogindex b.txt
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   329
     rev linkrev nodeid       p1           p2
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   330
       0       2 05b806ebe5ea 000000000000 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   331
       1       3 a58b36ad6b65 000000000000 05b806ebe5ea
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   332
       2       6 216a5fe8b8ed 000000000000 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   333
       3       7 ea4f2f2463cc 000000000000 216a5fe8b8ed
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   334
  $ hg debugrevlogindex D.txt
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   335
     rev linkrev nodeid       p1           p2
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   336
       0       6 2a8d3833f2fb 000000000000 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   337
       1       7 2a80419dfc31 000000000000 2a8d3833f2fb
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   338
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   339
Check that the revision is not "fixed" again
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   340
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   341
  $ hg debug-repair-issue6528 --from-report $TESTTMP/report.txt
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   342
  loading report file '$TESTTMP/report.txt'
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   343
  revision 2a80419dfc31d7dfb308ac40f3f138282de7d73b of file 'D.txt' is not affected
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   344
  no affected revisions were found for 'D.txt'
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   345
  revision a58b36ad6b6545195952793099613c2116f3563b of file 'b.txt' is not affected
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   346
  revision ea4f2f2463cca5b29ddf3461012b8ce5c6dac175 of file 'b.txt' is not affected
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   347
  no affected revisions were found for 'b.txt'
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   348
  $ hg st
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   349
  $ hg debugrevlogindex b.txt
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   350
     rev linkrev nodeid       p1           p2
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   351
       0       2 05b806ebe5ea 000000000000 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   352
       1       3 a58b36ad6b65 000000000000 05b806ebe5ea
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   353
       2       6 216a5fe8b8ed 000000000000 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   354
       3       7 ea4f2f2463cc 000000000000 216a5fe8b8ed
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   355
  $ hg debugrevlogindex D.txt
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   356
     rev linkrev nodeid       p1           p2
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   357
       0       6 2a8d3833f2fb 000000000000 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   358
       1       7 2a80419dfc31 000000000000 2a8d3833f2fb
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   359
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   360
Try it with a non-inline revlog
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   361
-------------------------------
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   362
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   363
  $ cd ..
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   364
  $ mkdir $TESTTMP/ext
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   365
  $ cat << EOF > $TESTTMP/ext/small_inline.py
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   366
  > from mercurial import revlog
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   367
  > revlog._maxinline = 8
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   368
  > EOF
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   369
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   370
  $ cat << EOF >> $HGRCPATH
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   371
  > [extensions]
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   372
  > small_inline=$TESTTMP/ext/small_inline.py
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   373
  > EOF
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   374
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   375
  $ mkdir repo-to-fix-not-inline
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   376
  $ cd repo-to-fix-not-inline
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   377
#if windows
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   378
tar interprets `:` in paths (like `C:`) as being remote, force local on Windows
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   379
only since some versions of tar don't have this flag.
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   380
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   381
  $ tar --force-local -xf $TESTDIR/bundles/issue6528.tar
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   382
#else
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   383
  $ tar xf $TESTDIR/bundles/issue6528.tar
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   384
#endif
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   385
  $ echo b >> b.txt
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   386
  $ hg commit -qm "inline -> separate"
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   387
  $ find .hg -name *b.txt.d
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   388
  .hg/store/data/b.txt.d
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   389
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   390
Status is correct, but the problem is still there, in the earlier revision
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   391
  $ hg st
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   392
  $ hg up 3
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   393
  1 files updated, 0 files merged, 1 files removed, 0 files unresolved
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   394
  $ hg st
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   395
  M b.txt
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   396
  $ hg debugrevlogindex b.txt
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   397
     rev linkrev nodeid       p1           p2
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   398
       0       2 05b806ebe5ea 000000000000 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   399
       1       3 a58b36ad6b65 05b806ebe5ea 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   400
       2       6 216a5fe8b8ed 000000000000 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   401
       3       7 ea4f2f2463cc 216a5fe8b8ed 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   402
       4       8 db234885e2fe ea4f2f2463cc 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   403
  $ hg debugrevlogindex D.txt
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   404
     rev linkrev nodeid       p1           p2
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   405
       0       6 2a8d3833f2fb 000000000000 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   406
       1       7 2a80419dfc31 2a8d3833f2fb 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   407
       2       8 65aecc89bb5d 2a80419dfc31 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   408
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   409
Run the fix on the non-inline revlog
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   410
  $ hg debug-repair-issue6528
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   411
  found affected revision 1 for filelog 'data/D.txt.i'
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   412
  repaired revision 1 of 'filelog data/D.txt.i'
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   413
  found affected revision 1 for filelog 'data/b.txt.i'
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   414
  found affected revision 3 for filelog 'data/b.txt.i'
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   415
  repaired revision 1 of 'filelog data/b.txt.i'
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   416
  repaired revision 3 of 'filelog data/b.txt.i'
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   417
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   418
Check that it worked
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   419
  $ hg debugrevlogindex b.txt
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   420
     rev linkrev nodeid       p1           p2
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   421
       0       2 05b806ebe5ea 000000000000 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   422
       1       3 a58b36ad6b65 000000000000 05b806ebe5ea
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   423
       2       6 216a5fe8b8ed 000000000000 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   424
       3       7 ea4f2f2463cc 000000000000 216a5fe8b8ed
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   425
       4       8 db234885e2fe ea4f2f2463cc 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   426
  $ hg debugrevlogindex D.txt
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   427
     rev linkrev nodeid       p1           p2
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   428
       0       6 2a8d3833f2fb 000000000000 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   429
       1       7 2a80419dfc31 000000000000 2a8d3833f2fb
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   430
       2       8 65aecc89bb5d 2a80419dfc31 000000000000
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   431
  $ hg debug-repair-issue6528
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   432
  no affected revisions were found
b30a53ffbf9b debugcommands: introduce a debug command to repair repos affected by issue6528
Raphaël Gomès <rgomes@octobus.net>
parents: 47052
diff changeset
   433
  $ hg st
47816
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   434
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   435
  $ cd ..
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   436
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   437
Applying a bad bundle should fix it on the fly
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   438
----------------------------------------------
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   439
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   440
from a v1 bundle
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   441
~~~~~~~~~~~~~~~~
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   442
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   443
  $ hg debugbundle  --spec "$TESTDIR"/bundles/issue6528.hg-v1
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   444
  bzip2-v1
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   445
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   446
  $ hg init unbundle-v1
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   447
  $ cd unbundle-v1
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   448
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   449
  $ hg unbundle "$TESTDIR"/bundles/issue6528.hg-v1
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   450
  adding changesets
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   451
  adding manifests
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   452
  adding file changes
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   453
  added 8 changesets with 12 changes to 4 files
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   454
  new changesets f5a5a568022f:3beabb508514 (8 drafts)
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   455
  (run 'hg update' to get a working copy)
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   456
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   457
Check that revision were fixed on the fly
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   458
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   459
  $ hg debugrevlogindex b.txt
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   460
     rev linkrev nodeid       p1           p2
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   461
       0       2 05b806ebe5ea 000000000000 000000000000
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   462
       1       3 a58b36ad6b65 000000000000 05b806ebe5ea
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   463
       2       6 216a5fe8b8ed 000000000000 000000000000
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   464
       3       7 ea4f2f2463cc 000000000000 216a5fe8b8ed
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   465
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   466
  $ hg debugrevlogindex D.txt
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   467
     rev linkrev nodeid       p1           p2
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   468
       0       6 2a8d3833f2fb 000000000000 000000000000
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   469
       1       7 2a80419dfc31 000000000000 2a8d3833f2fb
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   470
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   471
That we don't see the symptoms of the bug
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   472
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   473
  $ hg up -- -1
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   474
  2 files updated, 0 files merged, 0 files removed, 0 files unresolved
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   475
  $ hg status
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   476
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   477
And that the repair command does not find anything to fix
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   478
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   479
  $ hg debug-repair-issue6528
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   480
  no affected revisions were found
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   481
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   482
  $ cd ..
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   483
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   484
from a v2 bundle
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   485
~~~~~~~~~~~~~~~~
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   486
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   487
  $ hg debugbundle --spec "$TESTDIR"/bundles/issue6528.hg-v2
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   488
  bzip2-v2
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   489
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   490
  $ hg init unbundle-v2
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   491
  $ cd unbundle-v2
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   492
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   493
  $ hg unbundle "$TESTDIR"/bundles/issue6528.hg-v2
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   494
  adding changesets
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   495
  adding manifests
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   496
  adding file changes
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   497
  added 8 changesets with 12 changes to 4 files
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   498
  new changesets f5a5a568022f:3beabb508514 (8 drafts)
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   499
  (run 'hg update' to get a working copy)
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   500
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   501
Check that revision were fixed on the fly
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   502
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   503
  $ hg debugrevlogindex b.txt
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   504
     rev linkrev nodeid       p1           p2
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   505
       0       2 05b806ebe5ea 000000000000 000000000000
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   506
       1       3 a58b36ad6b65 000000000000 05b806ebe5ea
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   507
       2       6 216a5fe8b8ed 000000000000 000000000000
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   508
       3       7 ea4f2f2463cc 000000000000 216a5fe8b8ed
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   509
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   510
  $ hg debugrevlogindex D.txt
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   511
     rev linkrev nodeid       p1           p2
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   512
       0       6 2a8d3833f2fb 000000000000 000000000000
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   513
       1       7 2a80419dfc31 000000000000 2a8d3833f2fb
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   514
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   515
That we don't see the symptoms of the bug
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   516
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   517
  $ hg up -- -1
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   518
  2 files updated, 0 files merged, 0 files removed, 0 files unresolved
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   519
  $ hg status
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   520
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   521
And that the repair command does not find anything to fix
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   522
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   523
  $ hg debug-repair-issue6528
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   524
  no affected revisions were found
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   525
c30ca163b45e issue6528: also filter delta on the fly when applying a changegroup
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47812
diff changeset
   526
  $ cd ..
47817
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   527
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   528
A config option can disable the fixing of the bad bundle on the fly
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   529
-------------------------------------------------------------------
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   530
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   531
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   532
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   533
from a v1 bundle
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   534
~~~~~~~~~~~~~~~~
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   535
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   536
  $ hg debugbundle  --spec "$TESTDIR"/bundles/issue6528.hg-v1
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   537
  bzip2-v1
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   538
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   539
  $ hg init unbundle-v1-no-fix
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   540
  $ cd unbundle-v1-no-fix
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   541
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   542
  $ hg unbundle "$TESTDIR"/bundles/issue6528.hg-v1 --config storage.revlog.issue6528.fix-incoming=no
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   543
  adding changesets
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   544
  adding manifests
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   545
  adding file changes
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   546
  added 8 changesets with 12 changes to 4 files
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   547
  new changesets f5a5a568022f:3beabb508514 (8 drafts)
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   548
  (run 'hg update' to get a working copy)
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   549
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   550
Check that revision were not fixed on the fly
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   551
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   552
  $ hg debugrevlogindex b.txt
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   553
     rev linkrev nodeid       p1           p2
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   554
       0       2 05b806ebe5ea 000000000000 000000000000
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   555
       1       3 a58b36ad6b65 05b806ebe5ea 000000000000
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   556
       2       6 216a5fe8b8ed 000000000000 000000000000
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   557
       3       7 ea4f2f2463cc 216a5fe8b8ed 000000000000
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   558
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   559
  $ hg debugrevlogindex D.txt
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   560
     rev linkrev nodeid       p1           p2
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   561
       0       6 2a8d3833f2fb 000000000000 000000000000
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   562
       1       7 2a80419dfc31 2a8d3833f2fb 000000000000
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   563
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   564
That we do see the symptoms of the bug
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   565
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   566
  $ hg up -- -1
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   567
  2 files updated, 0 files merged, 0 files removed, 0 files unresolved
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   568
  $ hg status
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   569
  M D.txt (?)
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   570
  M b.txt (?)
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   571
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   572
And that the repair command find issue to fix.
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   573
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   574
  $ hg debug-repair-issue6528 --dry-run
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   575
  found affected revision 1 for filelog 'data/D.txt.i'
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   576
  found affected revision 1 for filelog 'data/b.txt.i'
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   577
  found affected revision 3 for filelog 'data/b.txt.i'
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   578
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   579
  $ cd ..
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   580
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   581
from a v2 bundle
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   582
~~~~~~~~~~~~~~~~
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   583
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   584
  $ hg debugbundle --spec "$TESTDIR"/bundles/issue6528.hg-v2
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   585
  bzip2-v2
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   586
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   587
  $ hg init unbundle-v2-no-fix
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   588
  $ cd unbundle-v2-no-fix
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   589
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   590
  $ hg unbundle "$TESTDIR"/bundles/issue6528.hg-v2 --config storage.revlog.issue6528.fix-incoming=no
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   591
  adding changesets
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   592
  adding manifests
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   593
  adding file changes
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   594
  added 8 changesets with 12 changes to 4 files
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   595
  new changesets f5a5a568022f:3beabb508514 (8 drafts)
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   596
  (run 'hg update' to get a working copy)
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   597
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   598
Check that revision were not fixed on the fly
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   599
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   600
  $ hg debugrevlogindex b.txt
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   601
     rev linkrev nodeid       p1           p2
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   602
       0       2 05b806ebe5ea 000000000000 000000000000
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   603
       1       3 a58b36ad6b65 05b806ebe5ea 000000000000
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   604
       2       6 216a5fe8b8ed 000000000000 000000000000
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   605
       3       7 ea4f2f2463cc 216a5fe8b8ed 000000000000
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   606
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   607
  $ hg debugrevlogindex D.txt
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   608
     rev linkrev nodeid       p1           p2
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   609
       0       6 2a8d3833f2fb 000000000000 000000000000
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   610
       1       7 2a80419dfc31 2a8d3833f2fb 000000000000
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   611
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   612
That we do see the symptoms of the bug
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   613
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   614
  $ hg up -- -1
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   615
  2 files updated, 0 files merged, 0 files removed, 0 files unresolved
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   616
  $ hg status
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   617
  M D.txt (?)
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   618
  M b.txt (?)
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   619
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   620
And that the repair command find issue to fix.
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   621
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   622
  $ hg debug-repair-issue6528 --dry-run
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   623
  found affected revision 1 for filelog 'data/D.txt.i'
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   624
  found affected revision 1 for filelog 'data/b.txt.i'
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   625
  found affected revision 3 for filelog 'data/b.txt.i'
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   626
2813d406b036 issue6528: add a config option to control the fixing on the fly
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47816
diff changeset
   627
  $ cd ..