Mercurial > hg
comparison tests/test-largefiles.t @ 21044:52a5eabf1f2f
largefiles: reuse "findcommonoutgoing()" result at "hg push"
Before this patch, "hg push" invokes "findcommonoutgoing()" not only
in "exchange.push()" but also in "lfilesrepo.push()", when largefiles
is enabled. The latter is redundant.
This patch registers own "prepushoutgoinghook" function into
"prepushoutgoinghooks" of "localrepository" to reuse
"findcommonoutgoing()" result.
"prepushoutgoinghook" omits "changelog.nodesbetween()" invocation,
because "findcommonoutgoing()" invocation in "exchange.push()" takes
"onlyheads" argument and it considers "nodesbetween()".
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Wed, 16 Apr 2014 00:37:24 +0900 |
parents | 7731a2281cf0 |
children | ca7a57464fb3 |
comparison
equal
deleted
inserted
replaced
21043:6c383c871fdb | 21044:52a5eabf1f2f |
---|---|
1591 summary: m1 | 1591 summary: m1 |
1592 | 1592 |
1593 $ hg push ../dest | 1593 $ hg push ../dest |
1594 pushing to ../dest | 1594 pushing to ../dest |
1595 searching for changes | 1595 searching for changes |
1596 searching for changes | |
1597 adding changesets | 1596 adding changesets |
1598 adding manifests | 1597 adding manifests |
1599 adding file changes | 1598 adding file changes |
1600 added 1 changesets with 1 changes to 1 files | 1599 added 1 changesets with 1 changes to 1 files |
1601 | 1600 |
1685 Push of file that exists on server but is corrupted - magic healing would be nice ... but too magic | 1684 Push of file that exists on server but is corrupted - magic healing would be nice ... but too magic |
1686 $ echo "server side corruption" > empty/.hg/largefiles/4cdac4d8b084d0b599525cf732437fb337d422a8 | 1685 $ echo "server side corruption" > empty/.hg/largefiles/4cdac4d8b084d0b599525cf732437fb337d422a8 |
1687 $ hg push -R r7 http://localhost:$HGPORT1 | 1686 $ hg push -R r7 http://localhost:$HGPORT1 |
1688 pushing to http://localhost:$HGPORT1/ | 1687 pushing to http://localhost:$HGPORT1/ |
1689 searching for changes | 1688 searching for changes |
1690 searching for changes | |
1691 remote: adding changesets | 1689 remote: adding changesets |
1692 remote: adding manifests | 1690 remote: adding manifests |
1693 remote: adding file changes | 1691 remote: adding file changes |
1694 remote: added 2 changesets with 2 changes to 2 files | 1692 remote: added 2 changesets with 2 changes to 2 files |
1695 $ cat empty/.hg/largefiles/4cdac4d8b084d0b599525cf732437fb337d422a8 | 1693 $ cat empty/.hg/largefiles/4cdac4d8b084d0b599525cf732437fb337d422a8 |
1708 > --config 'web.allow_push=*' --config web.push_ssl=False | 1706 > --config 'web.allow_push=*' --config web.push_ssl=False |
1709 $ cat hg.pid >> $DAEMON_PIDS | 1707 $ cat hg.pid >> $DAEMON_PIDS |
1710 $ rm "${USERCACHE}"/* | 1708 $ rm "${USERCACHE}"/* |
1711 $ hg push -R r8 http://localhost:$HGPORT2/#default | 1709 $ hg push -R r8 http://localhost:$HGPORT2/#default |
1712 pushing to http://localhost:$HGPORT2/ | 1710 pushing to http://localhost:$HGPORT2/ |
1713 searching for changes | |
1714 searching for changes | 1711 searching for changes |
1715 remote: adding changesets | 1712 remote: adding changesets |
1716 remote: adding manifests | 1713 remote: adding manifests |
1717 remote: adding file changes | 1714 remote: adding file changes |
1718 remote: added 1 changesets with 1 changes to 1 files | 1715 remote: added 1 changesets with 1 changes to 1 files |