tests/test-ssh.out
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
Sat, 09 Jun 2007 01:04:28 -0300
changeset 4531 b51a8138292a
parent 4298 58517f6eb1ad
child 4554 9dbabb9d466c
permissions -rw-r--r--
Avoid extra filelogs entries. Right now, there are some situations in which localrepo.filecommit can create filelog entries even though they're not needed. For example: - permissions for a file have changed; - qrefresh can create a filelog entry identical to its parent (see the added test); - convert-repo creates extra filelog entries in every merge where the first parent has added files (for example, changeset ebebe9577a1a of the kernel repo added extra filelog entries to files in the arch/blackfin directory, even though the merge should only touch the drivers/ata directory). This makes "hg log file" in a converted repo less useful than it could be, since it may mention many merges that don't actually touch that specific file. They all come from the same basic problem: localrepo.commit (through filecommit) creates new filelog entries for all files passed to it (except for some cases during a merge). Patch and test case provided by Benoit. This should fix issue351.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1110
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
     1
# creating 'remote'
3275
7ae37d99d47e ssh: make the error message more clear, add a testcase
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents: 3015
diff changeset
     2
# repo not found error
3380
8770b4870e22 portability fix for test-ssh
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents: 3275
diff changeset
     3
remote: abort: repository nonexistent not found!
3275
7ae37d99d47e ssh: make the error message more clear, add a testcase
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents: 3015
diff changeset
     4
abort: no suitable response from remote hg!
2612
ffb895f16925 add support for streaming clone.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents: 2439
diff changeset
     5
# clone remote via stream
ffb895f16925 add support for streaming clone.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents: 2439
diff changeset
     6
streaming all changes
ffb895f16925 add support for streaming clone.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents: 2439
diff changeset
     7
XXX files to transfer, XXX bytes of data
3015
fa4229c60dd7 Allow for MB/sec transfer rates in test-http-proxy and test-ssh.
Lee Cantey <lcantey@gmail.com>
parents: 2673
diff changeset
     8
transferred XXX bytes in XXX seconds (XXX XB/sec)
2612
ffb895f16925 add support for streaming clone.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents: 2439
diff changeset
     9
XXX files updated, XXX files merged, XXX files removed, XXX files unresolved
ffb895f16925 add support for streaming clone.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents: 2439
diff changeset
    10
checking changesets
ffb895f16925 add support for streaming clone.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents: 2439
diff changeset
    11
checking manifests
ffb895f16925 add support for streaming clone.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents: 2439
diff changeset
    12
crosschecking files in changesets and manifests
ffb895f16925 add support for streaming clone.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents: 2439
diff changeset
    13
checking files
3853
c0b449154a90 switch to the .hg/store layout, fix the tests
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents: 3684
diff changeset
    14
2 files, 1 changesets, 2 total revisions
2612
ffb895f16925 add support for streaming clone.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents: 2439
diff changeset
    15
# clone remote via pull
1110
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
    16
requesting all changes
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
    17
adding changesets
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
    18
adding manifests
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
    19
adding file changes
3853
c0b449154a90 switch to the .hg/store layout, fix the tests
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents: 3684
diff changeset
    20
added 1 changesets with 2 changes to 2 files
c0b449154a90 switch to the .hg/store layout, fix the tests
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents: 3684
diff changeset
    21
2 files updated, 0 files merged, 0 files removed, 0 files unresolved
1110
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
    22
# verify
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
    23
checking changesets
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
    24
checking manifests
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
    25
crosschecking files in changesets and manifests
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
    26
checking files
3853
c0b449154a90 switch to the .hg/store layout, fix the tests
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents: 3684
diff changeset
    27
2 files, 1 changesets, 2 total revisions
1110
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
    28
# empty default pull
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
    29
default = ssh://user@dummy/remote
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
    30
pulling from ssh://user@dummy/remote
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
    31
searching for changes
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
    32
no changes found
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
    33
# local change
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
    34
# updating rc
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
    35
# find outgoing
4162
b2d9e553cdc8 incoming/outgoing: print the name of the other repo
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents: 3853
diff changeset
    36
comparing with ssh://user@dummy/remote
1110
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
    37
searching for changes
3853
c0b449154a90 switch to the .hg/store layout, fix the tests
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents: 3684
diff changeset
    38
changeset:   1:572896fe480d
1110
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
    39
tag:         tip
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
    40
user:        test
1933
7544700fd931 Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1168
diff changeset
    41
date:        Mon Jan 12 13:46:40 1970 +0000
1110
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
    42
summary:     add
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
    43
1982
70ba0c86da8b Added test for incoming via ssh.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1933
diff changeset
    44
# find incoming on the remote side
4162
b2d9e553cdc8 incoming/outgoing: print the name of the other repo
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents: 3853
diff changeset
    45
comparing with ssh://user@dummy/local
1982
70ba0c86da8b Added test for incoming via ssh.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1933
diff changeset
    46
searching for changes
3853
c0b449154a90 switch to the .hg/store layout, fix the tests
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents: 3684
diff changeset
    47
changeset:   1:572896fe480d
1982
70ba0c86da8b Added test for incoming via ssh.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1933
diff changeset
    48
tag:         tip
70ba0c86da8b Added test for incoming via ssh.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1933
diff changeset
    49
user:        test
70ba0c86da8b Added test for incoming via ssh.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1933
diff changeset
    50
date:        Mon Jan 12 13:46:40 1970 +0000
70ba0c86da8b Added test for incoming via ssh.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1933
diff changeset
    51
summary:     add
70ba0c86da8b Added test for incoming via ssh.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1933
diff changeset
    52
1110
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
    53
# push
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
    54
pushing to ssh://user@dummy/remote
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
    55
searching for changes
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
    56
remote: adding changesets
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
    57
remote: adding manifests
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
    58
remote: adding file changes
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
    59
remote: added 1 changesets with 1 changes to 1 files
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
    60
# check remote tip
3853
c0b449154a90 switch to the .hg/store layout, fix the tests
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents: 3684
diff changeset
    61
changeset:   1:572896fe480d
1110
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
    62
tag:         tip
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
    63
user:        test
1933
7544700fd931 Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1168
diff changeset
    64
date:        Mon Jan 12 13:46:40 1970 +0000
1110
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
    65
summary:     add
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
    66
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
    67
checking changesets
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
    68
checking manifests
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
    69
crosschecking files in changesets and manifests
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
    70
checking files
3853
c0b449154a90 switch to the .hg/store layout, fix the tests
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents: 3684
diff changeset
    71
2 files, 2 changesets, 3 total revisions
1110
1032a505488c Add a simple dummy ssh test
mpm@selenic.com
parents:
diff changeset
    72
bleah
2439
e8c4f3d3df8c extend network protocol to stop clients from locking servers
Vadim Gelfer <vadim.gelfer@gmail.com>
parents: 2175
diff changeset
    73
# push should succeed
e8c4f3d3df8c extend network protocol to stop clients from locking servers
Vadim Gelfer <vadim.gelfer@gmail.com>
parents: 2175
diff changeset
    74
pushing to ssh://user@dummy/remote
e8c4f3d3df8c extend network protocol to stop clients from locking servers
Vadim Gelfer <vadim.gelfer@gmail.com>
parents: 2175
diff changeset
    75
searching for changes
3684
975c2469c316 correct remote heads test in prepush
Matt Mackall <mpm@selenic.com>
parents: 3380
diff changeset
    76
note: unsynced remote changes!
2439
e8c4f3d3df8c extend network protocol to stop clients from locking servers
Vadim Gelfer <vadim.gelfer@gmail.com>
parents: 2175
diff changeset
    77
remote: adding changesets
e8c4f3d3df8c extend network protocol to stop clients from locking servers
Vadim Gelfer <vadim.gelfer@gmail.com>
parents: 2175
diff changeset
    78
remote: adding manifests
e8c4f3d3df8c extend network protocol to stop clients from locking servers
Vadim Gelfer <vadim.gelfer@gmail.com>
parents: 2175
diff changeset
    79
remote: adding file changes
e8c4f3d3df8c extend network protocol to stop clients from locking servers
Vadim Gelfer <vadim.gelfer@gmail.com>
parents: 2175
diff changeset
    80
remote: added 1 changesets with 1 changes to 1 files
4298
58517f6eb1ad test-ssh: avoid a shell script
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents: 4291
diff changeset
    81
Got arguments 1:user@dummy 2:hg -R nonexistent serve --stdio
58517f6eb1ad test-ssh: avoid a shell script
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents: 4291
diff changeset
    82
Got arguments 1:user@dummy 2:hg -R remote serve --stdio
58517f6eb1ad test-ssh: avoid a shell script
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents: 4291
diff changeset
    83
Got arguments 1:user@dummy 2:hg -R remote serve --stdio
58517f6eb1ad test-ssh: avoid a shell script
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents: 4291
diff changeset
    84
Got arguments 1:user@dummy 2:hg -R remote serve --stdio
58517f6eb1ad test-ssh: avoid a shell script
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents: 4291
diff changeset
    85
Got arguments 1:user@dummy 2:hg -R remote serve --stdio
58517f6eb1ad test-ssh: avoid a shell script
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents: 4291
diff changeset
    86
Got arguments 1:user@dummy 2:hg -R local serve --stdio
58517f6eb1ad test-ssh: avoid a shell script
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents: 4291
diff changeset
    87
Got arguments 1:user@dummy 2:hg -R remote serve --stdio
4291
35b2e02367a5 test-ssh: use printenv.py
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents: 4162
diff changeset
    88
changegroup-in-remote hook: HG_NODE=572896fe480d7581849806ee402175c49cb20037 HG_SOURCE=serve HG_URL=remote:ssh:127.0.0.1 
4298
58517f6eb1ad test-ssh: avoid a shell script
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents: 4291
diff changeset
    89
Got arguments 1:user@dummy 2:hg -R remote serve --stdio
4291
35b2e02367a5 test-ssh: use printenv.py
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents: 4162
diff changeset
    90
changegroup-in-remote hook: HG_NODE=ac7448082955a0b2ff5cb4512c1e061c779bbc79 HG_SOURCE=serve HG_URL=remote:ssh:127.0.0.1