tests/test-clone-r.t
author Pierre-Yves David <pierre-yves.david@octobus.net>
Mon, 06 Mar 2023 13:31:04 +0100
branchstable
changeset 50282 4bcb91c8b9d8
parent 49825 2f2682f40ea0
permissions -rw-r--r--
undo-files: cleanup backup when cleaning undos Previously, the backups were left behind, by operation cleaning the undo's like strip, narrow and stream clone. The remaining elevant in the room is the transaction itself, who does not properly cleanup undo backup before copying the new ones.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
11925
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
     1
  $ hg init test
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
     2
  $ cd test
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
     3
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
     4
  $ echo 0 >> afile
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
     5
  $ hg add afile
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
     6
  $ hg commit -m "0.0"
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
     7
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
     8
  $ echo 1 >> afile
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
     9
  $ hg commit -m "0.1"
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    10
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    11
  $ echo 2 >> afile
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    12
  $ hg commit -m "0.2"
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    13
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    14
  $ echo 3 >> afile
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    15
  $ hg commit -m "0.3"
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    16
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    17
  $ hg update -C 0
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    18
  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    19
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    20
  $ echo 1 >> afile
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    21
  $ hg commit -m "1.1"
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    22
  created new head
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    23
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    24
  $ echo 2 >> afile
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    25
  $ hg commit -m "1.2"
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    26
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    27
  $ echo a line > fred
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    28
  $ echo 3 >> afile
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    29
  $ hg add fred
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    30
  $ hg commit -m "1.3"
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    31
  $ hg mv afile adifferentfile
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    32
  $ hg commit -m "1.3m"
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    33
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    34
  $ hg update -C 3
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    35
  1 files updated, 0 files merged, 2 files removed, 0 files unresolved
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    36
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    37
  $ hg mv afile anotherfile
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    38
  $ hg commit -m "0.3m"
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    39
39282
828a45233036 debugcommands: introduce debugrevlogindex (BC)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 37283
diff changeset
    40
  $ hg debugrevlogindex -f 1 afile
37283
d4e62df1c73d debugcommands: drop offset and length from debugindex by default
Gregory Szorc <gregory.szorc@gmail.com>
parents: 37282
diff changeset
    41
     rev flag     size   link     p1     p2       nodeid
d4e62df1c73d debugcommands: drop offset and length from debugindex by default
Gregory Szorc <gregory.szorc@gmail.com>
parents: 37282
diff changeset
    42
       0 0000        2      0     -1     -1 362fef284ce2
d4e62df1c73d debugcommands: drop offset and length from debugindex by default
Gregory Szorc <gregory.szorc@gmail.com>
parents: 37282
diff changeset
    43
       1 0000        4      1      0     -1 125144f7e028
d4e62df1c73d debugcommands: drop offset and length from debugindex by default
Gregory Szorc <gregory.szorc@gmail.com>
parents: 37282
diff changeset
    44
       2 0000        6      2      1     -1 4c982badb186
d4e62df1c73d debugcommands: drop offset and length from debugindex by default
Gregory Szorc <gregory.szorc@gmail.com>
parents: 37282
diff changeset
    45
       3 0000        8      3      2     -1 19b1fc555737
11925
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    46
14182
ec5886db9dc6 tests: fix deprecated use of hg debugdata/debugindex
Sune Foldager <cryo@cyanite.org>
parents: 12893
diff changeset
    47
  $ hg debugindex adifferentfile
49252
4141951dacff debugindex: rename the parent column to mention nodeid
Pierre-Yves DAVID <pierre-yves.david@octobus.net>
parents: 49251
diff changeset
    48
     rev linkrev       nodeid    p1-nodeid    p2-nodeid
37283
d4e62df1c73d debugcommands: drop offset and length from debugindex by default
Gregory Szorc <gregory.szorc@gmail.com>
parents: 37282
diff changeset
    49
       0       7 2565f3199a74 000000000000 000000000000
11925
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    50
14182
ec5886db9dc6 tests: fix deprecated use of hg debugdata/debugindex
Sune Foldager <cryo@cyanite.org>
parents: 12893
diff changeset
    51
  $ hg debugindex anotherfile
49252
4141951dacff debugindex: rename the parent column to mention nodeid
Pierre-Yves DAVID <pierre-yves.david@octobus.net>
parents: 49251
diff changeset
    52
     rev linkrev       nodeid    p1-nodeid    p2-nodeid
37283
d4e62df1c73d debugcommands: drop offset and length from debugindex by default
Gregory Szorc <gregory.szorc@gmail.com>
parents: 37282
diff changeset
    53
       0       8 2565f3199a74 000000000000 000000000000
11925
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    54
14182
ec5886db9dc6 tests: fix deprecated use of hg debugdata/debugindex
Sune Foldager <cryo@cyanite.org>
parents: 12893
diff changeset
    55
  $ hg debugindex fred
49252
4141951dacff debugindex: rename the parent column to mention nodeid
Pierre-Yves DAVID <pierre-yves.david@octobus.net>
parents: 49251
diff changeset
    56
     rev linkrev       nodeid    p1-nodeid    p2-nodeid
37283
d4e62df1c73d debugcommands: drop offset and length from debugindex by default
Gregory Szorc <gregory.szorc@gmail.com>
parents: 37282
diff changeset
    57
       0       6 12ab3bcc5ea4 000000000000 000000000000
11925
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    58
14323
a79fea6b3e77 debugindex etc.: add --changelog and --manifest options
Sune Foldager <cryo@cyanite.org>
parents: 14182
diff changeset
    59
  $ hg debugindex --manifest
49252
4141951dacff debugindex: rename the parent column to mention nodeid
Pierre-Yves DAVID <pierre-yves.david@octobus.net>
parents: 49251
diff changeset
    60
     rev linkrev       nodeid    p1-nodeid    p2-nodeid
37283
d4e62df1c73d debugcommands: drop offset and length from debugindex by default
Gregory Szorc <gregory.szorc@gmail.com>
parents: 37282
diff changeset
    61
       0       0 43eadb1d2d06 000000000000 000000000000
d4e62df1c73d debugcommands: drop offset and length from debugindex by default
Gregory Szorc <gregory.szorc@gmail.com>
parents: 37282
diff changeset
    62
       1       1 8b89697eba2c 43eadb1d2d06 000000000000
d4e62df1c73d debugcommands: drop offset and length from debugindex by default
Gregory Szorc <gregory.szorc@gmail.com>
parents: 37282
diff changeset
    63
       2       2 626a32663c2f 8b89697eba2c 000000000000
d4e62df1c73d debugcommands: drop offset and length from debugindex by default
Gregory Szorc <gregory.szorc@gmail.com>
parents: 37282
diff changeset
    64
       3       3 f54c32f13478 626a32663c2f 000000000000
d4e62df1c73d debugcommands: drop offset and length from debugindex by default
Gregory Szorc <gregory.szorc@gmail.com>
parents: 37282
diff changeset
    65
       4       6 de68e904d169 626a32663c2f 000000000000
d4e62df1c73d debugcommands: drop offset and length from debugindex by default
Gregory Szorc <gregory.szorc@gmail.com>
parents: 37282
diff changeset
    66
       5       7 09bb521d218d de68e904d169 000000000000
d4e62df1c73d debugcommands: drop offset and length from debugindex by default
Gregory Szorc <gregory.szorc@gmail.com>
parents: 37282
diff changeset
    67
       6       8 1fde233dfb0f f54c32f13478 000000000000
11925
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    68
49825
2f2682f40ea0 tests: use the `--quiet` flag for verify when applicable
Raphaël Gomès <rgomes@octobus.net>
parents: 49252
diff changeset
    69
  $ hg verify -q
11925
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    70
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    71
  $ cd ..
1468
dc1bbc456b96 Added a test for clone -r.
Eric Hopper <hopper@omnifarious.org>
parents:
diff changeset
    72
11925
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    73
  $ for i in 0 1 2 3 4 5 6 7 8; do
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    74
  >   echo
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    75
  >   echo ---- hg clone -r "$i" test test-"$i"
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    76
  >   hg clone -r "$i" test test-"$i"
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    77
  >   cd test-"$i"
49825
2f2682f40ea0 tests: use the `--quiet` flag for verify when applicable
Raphaël Gomès <rgomes@octobus.net>
parents: 49252
diff changeset
    78
  >   hg verify -q
11925
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    79
  >   cd ..
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    80
  > done
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    81
  
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    82
  ---- hg clone -r 0 test test-0
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    83
  adding changesets
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    84
  adding manifests
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    85
  adding file changes
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    86
  added 1 changesets with 1 changes to 1 files
34661
eb586ed5d8ce transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 26926
diff changeset
    87
  new changesets f9ee2f85a263
11925
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    88
  updating to branch default
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    89
  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    90
  
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    91
  ---- hg clone -r 1 test test-1
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    92
  adding changesets
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    93
  adding manifests
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    94
  adding file changes
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    95
  added 2 changesets with 2 changes to 1 files
34661
eb586ed5d8ce transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 26926
diff changeset
    96
  new changesets f9ee2f85a263:34c2bf6b0626
11925
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    97
  updating to branch default
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    98
  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
    99
  
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   100
  ---- hg clone -r 2 test test-2
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   101
  adding changesets
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   102
  adding manifests
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   103
  adding file changes
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   104
  added 3 changesets with 3 changes to 1 files
34661
eb586ed5d8ce transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 26926
diff changeset
   105
  new changesets f9ee2f85a263:e38ba6f5b7e0
11925
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   106
  updating to branch default
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   107
  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   108
  
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   109
  ---- hg clone -r 3 test test-3
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   110
  adding changesets
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   111
  adding manifests
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   112
  adding file changes
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   113
  added 4 changesets with 4 changes to 1 files
34661
eb586ed5d8ce transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 26926
diff changeset
   114
  new changesets f9ee2f85a263:eebf5a27f8ca
11925
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   115
  updating to branch default
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   116
  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   117
  
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   118
  ---- hg clone -r 4 test test-4
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   119
  adding changesets
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   120
  adding manifests
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   121
  adding file changes
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   122
  added 2 changesets with 2 changes to 1 files
34661
eb586ed5d8ce transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 26926
diff changeset
   123
  new changesets f9ee2f85a263:095197eb4973
11925
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   124
  updating to branch default
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   125
  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   126
  
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   127
  ---- hg clone -r 5 test test-5
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   128
  adding changesets
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   129
  adding manifests
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   130
  adding file changes
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   131
  added 3 changesets with 3 changes to 1 files
34661
eb586ed5d8ce transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 26926
diff changeset
   132
  new changesets f9ee2f85a263:1bb50a9436a7
11925
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   133
  updating to branch default
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   134
  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   135
  
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   136
  ---- hg clone -r 6 test test-6
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   137
  adding changesets
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   138
  adding manifests
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   139
  adding file changes
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   140
  added 4 changesets with 5 changes to 2 files
34661
eb586ed5d8ce transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 26926
diff changeset
   141
  new changesets f9ee2f85a263:7373c1169842
11925
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   142
  updating to branch default
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   143
  2 files updated, 0 files merged, 0 files removed, 0 files unresolved
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   144
  
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   145
  ---- hg clone -r 7 test test-7
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   146
  adding changesets
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   147
  adding manifests
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   148
  adding file changes
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   149
  added 5 changesets with 6 changes to 3 files
34661
eb586ed5d8ce transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 26926
diff changeset
   150
  new changesets f9ee2f85a263:a6a34bfa0076
11925
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   151
  updating to branch default
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   152
  2 files updated, 0 files merged, 0 files removed, 0 files unresolved
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   153
  
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   154
  ---- hg clone -r 8 test test-8
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   155
  adding changesets
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   156
  adding manifests
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   157
  adding file changes
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   158
  added 5 changesets with 5 changes to 2 files
34661
eb586ed5d8ce transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 26926
diff changeset
   159
  new changesets f9ee2f85a263:aa35859c02ea
11925
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   160
  updating to branch default
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   161
  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   162
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   163
  $ cd test-8
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   164
  $ hg pull ../test-7
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   165
  pulling from ../test-7
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   166
  searching for changes
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   167
  adding changesets
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   168
  adding manifests
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   169
  adding file changes
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   170
  added 4 changesets with 2 changes to 3 files (+1 heads)
34661
eb586ed5d8ce transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 26926
diff changeset
   171
  new changesets 095197eb4973:a6a34bfa0076
11925
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   172
  (run 'hg heads' to see heads, 'hg merge' to merge)
49825
2f2682f40ea0 tests: use the `--quiet` flag for verify when applicable
Raphaël Gomès <rgomes@octobus.net>
parents: 49252
diff changeset
   173
  $ hg verify -q
11925
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   174
  $ cd ..
1d03c927a428 tests: unify test-clone-r
Adrian Buehlmann <adrian@cadifra.com>
parents: 3853
diff changeset
   175
26103
30be3aeb5344 clone: fix updaterev to update to latest branch changeset (issue4528)
liscju <piotr.listkiewicz@gmail.com>
parents: 17132
diff changeset
   176
  $ hg clone test test-9
30be3aeb5344 clone: fix updaterev to update to latest branch changeset (issue4528)
liscju <piotr.listkiewicz@gmail.com>
parents: 17132
diff changeset
   177
  updating to branch default
30be3aeb5344 clone: fix updaterev to update to latest branch changeset (issue4528)
liscju <piotr.listkiewicz@gmail.com>
parents: 17132
diff changeset
   178
  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
30be3aeb5344 clone: fix updaterev to update to latest branch changeset (issue4528)
liscju <piotr.listkiewicz@gmail.com>
parents: 17132
diff changeset
   179
  $ cd test-9
30be3aeb5344 clone: fix updaterev to update to latest branch changeset (issue4528)
liscju <piotr.listkiewicz@gmail.com>
parents: 17132
diff changeset
   180
  $ hg branch foobar
30be3aeb5344 clone: fix updaterev to update to latest branch changeset (issue4528)
liscju <piotr.listkiewicz@gmail.com>
parents: 17132
diff changeset
   181
  marked working directory as branch foobar
30be3aeb5344 clone: fix updaterev to update to latest branch changeset (issue4528)
liscju <piotr.listkiewicz@gmail.com>
parents: 17132
diff changeset
   182
  (branches are permanent and global, did you want a bookmark?)
30be3aeb5344 clone: fix updaterev to update to latest branch changeset (issue4528)
liscju <piotr.listkiewicz@gmail.com>
parents: 17132
diff changeset
   183
  $ echo file2 >> file2
30be3aeb5344 clone: fix updaterev to update to latest branch changeset (issue4528)
liscju <piotr.listkiewicz@gmail.com>
parents: 17132
diff changeset
   184
  $ hg add file2
30be3aeb5344 clone: fix updaterev to update to latest branch changeset (issue4528)
liscju <piotr.listkiewicz@gmail.com>
parents: 17132
diff changeset
   185
  $ hg commit -m "changeset9"
30be3aeb5344 clone: fix updaterev to update to latest branch changeset (issue4528)
liscju <piotr.listkiewicz@gmail.com>
parents: 17132
diff changeset
   186
  $ echo file3 >> file3
30be3aeb5344 clone: fix updaterev to update to latest branch changeset (issue4528)
liscju <piotr.listkiewicz@gmail.com>
parents: 17132
diff changeset
   187
  $ hg add file3
30be3aeb5344 clone: fix updaterev to update to latest branch changeset (issue4528)
liscju <piotr.listkiewicz@gmail.com>
parents: 17132
diff changeset
   188
  $ hg commit -m "changeset10"
30be3aeb5344 clone: fix updaterev to update to latest branch changeset (issue4528)
liscju <piotr.listkiewicz@gmail.com>
parents: 17132
diff changeset
   189
  $ cd ..
30be3aeb5344 clone: fix updaterev to update to latest branch changeset (issue4528)
liscju <piotr.listkiewicz@gmail.com>
parents: 17132
diff changeset
   190
  $ hg clone -r 9 -u foobar test-9 test-10
30be3aeb5344 clone: fix updaterev to update to latest branch changeset (issue4528)
liscju <piotr.listkiewicz@gmail.com>
parents: 17132
diff changeset
   191
  adding changesets
30be3aeb5344 clone: fix updaterev to update to latest branch changeset (issue4528)
liscju <piotr.listkiewicz@gmail.com>
parents: 17132
diff changeset
   192
  adding manifests
30be3aeb5344 clone: fix updaterev to update to latest branch changeset (issue4528)
liscju <piotr.listkiewicz@gmail.com>
parents: 17132
diff changeset
   193
  adding file changes
30be3aeb5344 clone: fix updaterev to update to latest branch changeset (issue4528)
liscju <piotr.listkiewicz@gmail.com>
parents: 17132
diff changeset
   194
  added 6 changesets with 6 changes to 3 files
34661
eb586ed5d8ce transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 26926
diff changeset
   195
  new changesets f9ee2f85a263:7100abb79635
26103
30be3aeb5344 clone: fix updaterev to update to latest branch changeset (issue4528)
liscju <piotr.listkiewicz@gmail.com>
parents: 17132
diff changeset
   196
  updating to branch foobar
30be3aeb5344 clone: fix updaterev to update to latest branch changeset (issue4528)
liscju <piotr.listkiewicz@gmail.com>
parents: 17132
diff changeset
   197
  2 files updated, 0 files merged, 0 files removed, 0 files unresolved
30be3aeb5344 clone: fix updaterev to update to latest branch changeset (issue4528)
liscju <piotr.listkiewicz@gmail.com>
parents: 17132
diff changeset
   198
30be3aeb5344 clone: fix updaterev to update to latest branch changeset (issue4528)
liscju <piotr.listkiewicz@gmail.com>
parents: 17132
diff changeset
   199