Mercurial > hg
comparison tests/test-exchange-obsmarkers-case-A6.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 | 7d8b9c80ba70 |
children | b11e8c67fb0f |
comparison
equal
deleted
inserted
replaced
33251:a5cb2e4460de | 33252:53b3a1968aa6 |
---|---|
95 ## pushing "A1" from main to pushdest | 95 ## pushing "A1" from main to pushdest |
96 pushing to pushdest | 96 pushing to pushdest |
97 searching for changes | 97 searching for changes |
98 no changes found | 98 no changes found |
99 remote: 1 new obsolescence markers | 99 remote: 1 new obsolescence markers |
100 remote: obsoleted 1 changesets | |
100 ## post push state | 101 ## post push state |
101 # obstore: main | 102 # obstore: main |
102 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | 103 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
103 # obstore: pushdest | 104 # obstore: pushdest |
104 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | 105 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
105 # obstore: pulldest | 106 # obstore: pulldest |
106 ## pulling "e5ea8f9c7314" from main into pulldest | 107 ## pulling "e5ea8f9c7314" from main into pulldest |
107 pulling from main | 108 pulling from main |
108 no changes found | 109 no changes found |
109 1 new obsolescence markers | 110 1 new obsolescence markers |
111 obsoleted 1 changesets | |
110 ## post pull state | 112 ## post pull state |
111 # obstore: main | 113 # obstore: main |
112 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | 114 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
113 # obstore: pushdest | 115 # obstore: pushdest |
114 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | 116 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
128 ## pushing from main to pushdest | 130 ## pushing from main to pushdest |
129 pushing to pushdest | 131 pushing to pushdest |
130 searching for changes | 132 searching for changes |
131 no changes found | 133 no changes found |
132 remote: 1 new obsolescence markers | 134 remote: 1 new obsolescence markers |
135 remote: obsoleted 1 changesets | |
133 ## post push state | 136 ## post push state |
134 # obstore: main | 137 # obstore: main |
135 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | 138 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
136 # obstore: pushdest | 139 # obstore: pushdest |
137 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | 140 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
139 ## pulling from main into pulldest | 142 ## pulling from main into pulldest |
140 pulling from main | 143 pulling from main |
141 searching for changes | 144 searching for changes |
142 no changes found | 145 no changes found |
143 1 new obsolescence markers | 146 1 new obsolescence markers |
147 obsoleted 1 changesets | |
144 ## post pull state | 148 ## post pull state |
145 # obstore: main | 149 # obstore: main |
146 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | 150 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
147 # obstore: pushdest | 151 # obstore: pushdest |
148 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | 152 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |