Mercurial > hg
view tests/test-mq-qclone-http.out @ 11541:ab9fa7a85dd9 stable
filelog: cmp: don't read data if hashes are identical (issue2273)
filelog.renamed() is an expensive call as it reads the filelog if p1 == nullid.
It's more efficient to first compute the hash, and to bail early if
the computed hash is the same as the stored nodeid.
'samehashes' variable is not strictly necessary, but helps for comprehension.
author | Nicolas Dumazet <nicdumz.commits@gmail.com> |
---|---|
date | Mon, 05 Jul 2010 19:49:54 +0900 |
parents | 662b0f9eb148 |
children |
line wrap: on
line source
adding a adding b [mq]: b.patch a b.patch % test with recursive collection 200 Script output follows /a/ /a/.hg/patches/ requesting all changes adding changesets adding manifests adding file changes added 2 changesets with 2 changes to 2 files requesting all changes adding changesets adding manifests adding file changes added 1 changesets with 3 changes to 3 files updating to branch default 3 files updated, 0 files merged, 0 files removed, 0 files unresolved 1 files updated, 0 files merged, 0 files removed, 0 files unresolved a applying b.patch now at: b.patch imported patch b.patch a % test with normal collection 200 Script output follows /a/ /a/.hg/patches/ requesting all changes adding changesets adding manifests adding file changes added 2 changesets with 2 changes to 2 files requesting all changes adding changesets adding manifests adding file changes added 1 changesets with 3 changes to 3 files updating to branch default 3 files updated, 0 files merged, 0 files removed, 0 files unresolved 1 files updated, 0 files merged, 0 files removed, 0 files unresolved a applying b.patch now at: b.patch imported patch b.patch a % test with old-style collection 200 Script output follows /a/ /a/.hg/patches/ requesting all changes adding changesets adding manifests adding file changes added 2 changesets with 2 changes to 2 files requesting all changes adding changesets adding manifests adding file changes added 1 changesets with 3 changes to 3 files updating to branch default 3 files updated, 0 files merged, 0 files removed, 0 files unresolved 1 files updated, 0 files merged, 0 files removed, 0 files unresolved a applying b.patch now at: b.patch imported patch b.patch a % test --mq works and uses correct repository config comparing with http://localhost:$HGPORT2/a/.hg/patches searching for changes no changes found 0 b.patch