Mercurial > hg
comparison tests/test-push-race.t @ 33252:53b3a1968aa6
obsolete: reports the number of local changeset obsoleted when unbundling
This is a first basic visible usage of the changes tracking in the transaction.
We adds a new function computing the pre-existing changesets obsoleted by a
transaction and a transaction call back displaying this information.
Example output:
added 1 changesets with 1 changes to 1 files (+1 heads)
3 new obsolescence markers
obsoleted 1 changesets
The goal is to evolve the transaction summary into something bigger, gathering
existing output there and adding new useful one. This patch is a good first step
on this road. The new output is basic but give a user to the content of
tr.changes['obsmarkers'] and give an idea of the new options we haves. I expect
to revisit the message soon.
The caller recording the transaction summary should also be moved into a more
generic location but further refactoring is needed before it can happen.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 28 Jun 2017 03:54:19 +0200 |
parents | a7851519ea02 |
children | 8e6f4939a69a |
comparison
equal
deleted
inserted
replaced
33251:a5cb2e4460de | 33252:53b3a1968aa6 |
---|---|
1663 adding changesets | 1663 adding changesets |
1664 adding manifests | 1664 adding manifests |
1665 adding file changes | 1665 adding file changes |
1666 added 1 changesets with 1 changes to 1 files (+1 heads) | 1666 added 1 changesets with 1 changes to 1 files (+1 heads) |
1667 1 new obsolescence markers | 1667 1 new obsolescence markers |
1668 obsoleted 1 changesets | |
1668 (run 'hg heads .' to see heads, 'hg merge' to merge) | 1669 (run 'hg heads .' to see heads, 'hg merge' to merge) |
1669 $ hg -R ./client-other pull | 1670 $ hg -R ./client-other pull |
1670 pulling from ssh://user@dummy/server | 1671 pulling from ssh://user@dummy/server |
1671 searching for changes | 1672 searching for changes |
1672 adding changesets | 1673 adding changesets |
1673 adding manifests | 1674 adding manifests |
1674 adding file changes | 1675 adding file changes |
1675 added 1 changesets with 1 changes to 1 files (+1 heads) | 1676 added 1 changesets with 1 changes to 1 files (+1 heads) |
1676 1 new obsolescence markers | 1677 1 new obsolescence markers |
1678 obsoleted 1 changesets | |
1677 (run 'hg heads .' to see heads, 'hg merge' to merge) | 1679 (run 'hg heads .' to see heads, 'hg merge' to merge) |
1678 $ hg -R ./client-racy pull | 1680 $ hg -R ./client-racy pull |
1679 pulling from ssh://user@dummy/server | 1681 pulling from ssh://user@dummy/server |
1680 searching for changes | 1682 searching for changes |
1681 adding changesets | 1683 adding changesets |
1768 remote: adding changesets | 1770 remote: adding changesets |
1769 remote: adding manifests | 1771 remote: adding manifests |
1770 remote: adding file changes | 1772 remote: adding file changes |
1771 remote: added 1 changesets with 0 changes to 1 files (+1 heads) | 1773 remote: added 1 changesets with 0 changes to 1 files (+1 heads) |
1772 remote: 1 new obsolescence markers | 1774 remote: 1 new obsolescence markers |
1775 remote: obsoleted 1 changesets | |
1773 | 1776 |
1774 $ release $TESTTMP/watchfile | 1777 $ release $TESTTMP/watchfile |
1775 | 1778 |
1776 Check the result of the push | 1779 Check the result of the push |
1777 | 1780 |