changeset 956:b107f3549ec2

evolve: make exchange output compact in the old pushkey case too.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Mon, 02 Jun 2014 14:44:13 -0700
parents 72670e282460
children 2cde59f3cb5d
files hgext/evolve.py tests/test-corrupt.t tests/test-exchange-A1.t tests/test-exchange-A2.t tests/test-exchange-A3.t tests/test-exchange-A4.t tests/test-exchange-A5.t tests/test-exchange-A6.t tests/test-exchange-B1.t tests/test-exchange-B2.t tests/test-exchange-B4.t tests/test-exchange-B5.t tests/test-exchange-B6.t tests/test-exchange-C1.t tests/test-exchange-C2.t tests/test-exchange-C3.t tests/test-exchange-C4.t tests/test-exchange-D1.t tests/test-exchange-D2.t tests/test-exchange-D4.t tests/test-obsolete.t tests/test-tutorial.t
diffstat 22 files changed, 40 insertions(+), 79 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/evolve.py	Tue Jun 03 01:37:08 2014 -0700
+++ b/hgext/evolve.py	Mon Jun 02 14:44:13 2014 -0700
@@ -2286,12 +2286,11 @@
             repo.ui.progress('OBSEXC', None)
         else:
             rslts = []
-            repo.ui.status("OBSEXC: pushing %i markers\n" % len(markers))
             remotedata = _pushkeyescape(markers).items()
             totalbytes = sum(len(d) for k,d in remotedata)
             sentbytes = 0
-            repo.ui.status("OBSEXC: sending %i pushkey payload (%i bytes)\n"
-                            % (len(remotedata), totalbytes))
+            repo.ui.status("OBSEXC: pushing %i markers in %i pushkey payload (%i bytes)\n"
+                            % (len(markers), len(remotedata), totalbytes))
             for key, data in remotedata:
                 repo.ui.progress('OBSEXC', sentbytes, item=key, unit="bytes",
                                  total=totalbytes)
--- a/tests/test-corrupt.t	Tue Jun 03 01:37:08 2014 -0700
+++ b/tests/test-corrupt.t	Mon Jun 02 14:44:13 2014 -0700
@@ -113,8 +113,7 @@
   added 1 changesets with 2 changes to 2 files
   OBSEXC: computing relevant nodes
   OBSEXC: computing markers relevant to 4 nodes
-  OBSEXC: pushing 2 markers
-  OBSEXC: sending 1 pushkey payload (184 bytes)
+  OBSEXC: pushing 2 markers in 1 pushkey payload (184 bytes)
   OBSEXC: DONE
   $ hg -R ../other verify
   checking changesets
--- a/tests/test-exchange-A1.t	Tue Jun 03 01:37:08 2014 -0700
+++ b/tests/test-exchange-A1.t	Mon Jun 02 14:44:13 2014 -0700
@@ -74,8 +74,7 @@
   added 1 changesets with 1 changes to 1 files
   OBSEXC: computing relevant nodes
   OBSEXC: computing markers relevant to 2 nodes
-  OBSEXC: pushing 1 markers
-  OBSEXC: sending 1 pushkey payload (78 bytes)
+  OBSEXC: pushing 1 markers in 1 pushkey payload (78 bytes)
   OBSEXC: DONE
   ## post push state
   # obstore: main
@@ -125,8 +124,7 @@
   added 1 changesets with 1 changes to 1 files
   OBSEXC: computing relevant nodes
   OBSEXC: computing markers relevant to 2 nodes
-  OBSEXC: pushing 1 markers
-  OBSEXC: sending 1 pushkey payload (78 bytes)
+  OBSEXC: pushing 1 markers in 1 pushkey payload (78 bytes)
   OBSEXC: DONE
   ## post push state
   # obstore: main
@@ -235,8 +233,7 @@
   added 2 changesets with 2 changes to 2 files
   OBSEXC: computing relevant nodes
   OBSEXC: computing markers relevant to 3 nodes
-  OBSEXC: pushing 1 markers
-  OBSEXC: sending 1 pushkey payload (78 bytes)
+  OBSEXC: pushing 1 markers in 1 pushkey payload (78 bytes)
   OBSEXC: DONE
   ## post push state
   # obstore: main
@@ -283,8 +280,7 @@
   added 2 changesets with 2 changes to 2 files
   OBSEXC: computing relevant nodes
   OBSEXC: computing markers relevant to 3 nodes
-  OBSEXC: pushing 1 markers
-  OBSEXC: sending 1 pushkey payload (78 bytes)
+  OBSEXC: pushing 1 markers in 1 pushkey payload (78 bytes)
   OBSEXC: DONE
   ## post push state
   # obstore: main
--- a/tests/test-exchange-A2.t	Tue Jun 03 01:37:08 2014 -0700
+++ b/tests/test-exchange-A2.t	Mon Jun 02 14:44:13 2014 -0700
@@ -82,8 +82,7 @@
   added 1 changesets with 1 changes to 1 files
   OBSEXC: computing relevant nodes
   OBSEXC: computing markers relevant to 2 nodes
-  OBSEXC: pushing 1 markers
-  OBSEXC: sending 1 pushkey payload (78 bytes)
+  OBSEXC: pushing 1 markers in 1 pushkey payload (78 bytes)
   OBSEXC: DONE
   ## post push state
   # obstore: main
--- a/tests/test-exchange-A3.t	Tue Jun 03 01:37:08 2014 -0700
+++ b/tests/test-exchange-A3.t	Mon Jun 02 14:44:13 2014 -0700
@@ -94,8 +94,7 @@
   added 1 changesets with 1 changes to 1 files
   OBSEXC: computing relevant nodes
   OBSEXC: computing markers relevant to 2 nodes
-  OBSEXC: pushing 1 markers
-  OBSEXC: sending 1 pushkey payload (78 bytes)
+  OBSEXC: pushing 1 markers in 1 pushkey payload (78 bytes)
   OBSEXC: DONE
   ## post push state
   # obstore: main
@@ -199,8 +198,7 @@
   added 1 changesets with 1 changes to 1 files (+1 heads)
   OBSEXC: computing relevant nodes
   OBSEXC: computing markers relevant to 2 nodes
-  OBSEXC: pushing 1 markers
-  OBSEXC: sending 1 pushkey payload (78 bytes)
+  OBSEXC: pushing 1 markers in 1 pushkey payload (78 bytes)
   OBSEXC: DONE
   ## post push state
   # obstore: main
--- a/tests/test-exchange-A4.t	Tue Jun 03 01:37:08 2014 -0700
+++ b/tests/test-exchange-A4.t	Mon Jun 02 14:44:13 2014 -0700
@@ -87,8 +87,7 @@
   added 2 changesets with 2 changes to 2 files
   OBSEXC: computing relevant nodes
   OBSEXC: computing markers relevant to 3 nodes
-  OBSEXC: pushing 1 markers
-  OBSEXC: sending 1 pushkey payload (78 bytes)
+  OBSEXC: pushing 1 markers in 1 pushkey payload (78 bytes)
   OBSEXC: DONE
   ## post push state
   # obstore: main
--- a/tests/test-exchange-A5.t	Tue Jun 03 01:37:08 2014 -0700
+++ b/tests/test-exchange-A5.t	Mon Jun 02 14:44:13 2014 -0700
@@ -95,8 +95,7 @@
   added 1 changesets with 1 changes to 1 files
   OBSEXC: computing relevant nodes
   OBSEXC: computing markers relevant to 2 nodes
-  OBSEXC: pushing 1 markers
-  OBSEXC: sending 1 pushkey payload (78 bytes)
+  OBSEXC: pushing 1 markers in 1 pushkey payload (78 bytes)
   OBSEXC: DONE
   ## post push state
   # obstore: main
--- a/tests/test-exchange-A6.t	Tue Jun 03 01:37:08 2014 -0700
+++ b/tests/test-exchange-A6.t	Mon Jun 02 14:44:13 2014 -0700
@@ -82,8 +82,7 @@
   no changes found
   OBSEXC: computing relevant nodes
   OBSEXC: computing markers relevant to 2 nodes
-  OBSEXC: pushing 1 markers
-  OBSEXC: sending 1 pushkey payload (78 bytes)
+  OBSEXC: pushing 1 markers in 1 pushkey payload (78 bytes)
   OBSEXC: DONE
   ## post push state
   # obstore: main
@@ -122,8 +121,7 @@
   no changes found
   OBSEXC: computing relevant nodes
   OBSEXC: computing markers relevant to 3 nodes
-  OBSEXC: pushing 1 markers
-  OBSEXC: sending 1 pushkey payload (78 bytes)
+  OBSEXC: pushing 1 markers in 1 pushkey payload (78 bytes)
   OBSEXC: DONE
   ## post push state
   # obstore: main
--- a/tests/test-exchange-B1.t	Tue Jun 03 01:37:08 2014 -0700
+++ b/tests/test-exchange-B1.t	Mon Jun 02 14:44:13 2014 -0700
@@ -73,8 +73,7 @@
   added 1 changesets with 1 changes to 1 files
   OBSEXC: computing relevant nodes
   OBSEXC: computing markers relevant to 2 nodes
-  OBSEXC: pushing 1 markers
-  OBSEXC: sending 1 pushkey payload (112 bytes)
+  OBSEXC: pushing 1 markers in 1 pushkey payload (112 bytes)
   OBSEXC: DONE
   ## post push state
   # obstore: main
@@ -121,8 +120,7 @@
   added 1 changesets with 1 changes to 1 files
   OBSEXC: computing relevant nodes
   OBSEXC: computing markers relevant to 2 nodes
-  OBSEXC: pushing 1 markers
-  OBSEXC: sending 1 pushkey payload (112 bytes)
+  OBSEXC: pushing 1 markers in 1 pushkey payload (112 bytes)
   OBSEXC: DONE
   ## post push state
   # obstore: main
--- a/tests/test-exchange-B2.t	Tue Jun 03 01:37:08 2014 -0700
+++ b/tests/test-exchange-B2.t	Mon Jun 02 14:44:13 2014 -0700
@@ -65,8 +65,7 @@
   no changes found
   OBSEXC: computing relevant nodes
   OBSEXC: computing markers relevant to 1 nodes
-  OBSEXC: pushing 1 markers
-  OBSEXC: sending 1 pushkey payload (112 bytes)
+  OBSEXC: pushing 1 markers in 1 pushkey payload (112 bytes)
   OBSEXC: DONE
   ## post push state
   # obstore: main
@@ -105,8 +104,7 @@
   no changes found
   OBSEXC: computing relevant nodes
   OBSEXC: computing markers relevant to 1 nodes
-  OBSEXC: pushing 1 markers
-  OBSEXC: sending 1 pushkey payload (112 bytes)
+  OBSEXC: pushing 1 markers in 1 pushkey payload (112 bytes)
   OBSEXC: DONE
   ## post push state
   # obstore: main
--- a/tests/test-exchange-B4.t	Tue Jun 03 01:37:08 2014 -0700
+++ b/tests/test-exchange-B4.t	Mon Jun 02 14:44:13 2014 -0700
@@ -91,8 +91,7 @@
   no changes found
   OBSEXC: computing relevant nodes
   OBSEXC: computing markers relevant to 1 nodes
-  OBSEXC: pushing 1 markers
-  OBSEXC: sending 1 pushkey payload (112 bytes)
+  OBSEXC: pushing 1 markers in 1 pushkey payload (112 bytes)
   OBSEXC: DONE
   ## post push state
   # obstore: main
@@ -131,8 +130,7 @@
   no changes found
   OBSEXC: computing relevant nodes
   OBSEXC: computing markers relevant to 3 nodes
-  OBSEXC: pushing 1 markers
-  OBSEXC: sending 1 pushkey payload (112 bytes)
+  OBSEXC: pushing 1 markers in 1 pushkey payload (112 bytes)
   OBSEXC: DONE
   ## post push state
   # obstore: main
--- a/tests/test-exchange-B5.t	Tue Jun 03 01:37:08 2014 -0700
+++ b/tests/test-exchange-B5.t	Mon Jun 02 14:44:13 2014 -0700
@@ -93,8 +93,7 @@
   added 2 changesets with 2 changes to 2 files
   OBSEXC: computing relevant nodes
   OBSEXC: computing markers relevant to 3 nodes
-  OBSEXC: pushing 2 markers
-  OBSEXC: sending 1 pushkey payload (188 bytes)
+  OBSEXC: pushing 2 markers in 1 pushkey payload (188 bytes)
   OBSEXC: DONE
   ## post push state
   # obstore: main
@@ -149,8 +148,7 @@
   added 2 changesets with 2 changes to 2 files
   OBSEXC: computing relevant nodes
   OBSEXC: computing markers relevant to 3 nodes
-  OBSEXC: pushing 2 markers
-  OBSEXC: sending 1 pushkey payload (188 bytes)
+  OBSEXC: pushing 2 markers in 1 pushkey payload (188 bytes)
   OBSEXC: DONE
   ## post push state
   # obstore: main
--- a/tests/test-exchange-B6.t	Tue Jun 03 01:37:08 2014 -0700
+++ b/tests/test-exchange-B6.t	Mon Jun 02 14:44:13 2014 -0700
@@ -77,8 +77,7 @@
   no changes found
   OBSEXC: computing relevant nodes
   OBSEXC: computing markers relevant to 1 nodes
-  OBSEXC: pushing 2 markers
-  OBSEXC: sending 1 pushkey payload (188 bytes)
+  OBSEXC: pushing 2 markers in 1 pushkey payload (188 bytes)
   OBSEXC: DONE
   ## post push state
   # obstore: main
--- a/tests/test-exchange-C1.t	Tue Jun 03 01:37:08 2014 -0700
+++ b/tests/test-exchange-C1.t	Mon Jun 02 14:44:13 2014 -0700
@@ -72,8 +72,7 @@
   no changes found
   OBSEXC: computing relevant nodes
   OBSEXC: computing markers relevant to 1 nodes
-  OBSEXC: pushing 2 markers
-  OBSEXC: sending 1 pushkey payload (222 bytes)
+  OBSEXC: pushing 2 markers in 1 pushkey payload (222 bytes)
   OBSEXC: DONE
   ## post push state
   # obstore: main
@@ -118,8 +117,7 @@
   no changes found
   OBSEXC: computing relevant nodes
   OBSEXC: computing markers relevant to 1 nodes
-  OBSEXC: pushing 2 markers
-  OBSEXC: sending 1 pushkey payload (222 bytes)
+  OBSEXC: pushing 2 markers in 1 pushkey payload (222 bytes)
   OBSEXC: DONE
   ## post push state
   # obstore: main
--- a/tests/test-exchange-C2.t	Tue Jun 03 01:37:08 2014 -0700
+++ b/tests/test-exchange-C2.t	Mon Jun 02 14:44:13 2014 -0700
@@ -82,8 +82,7 @@
   added 1 changesets with 1 changes to 1 files
   OBSEXC: computing relevant nodes
   OBSEXC: computing markers relevant to 2 nodes
-  OBSEXC: pushing 2 markers
-  OBSEXC: sending 1 pushkey payload (188 bytes)
+  OBSEXC: pushing 2 markers in 1 pushkey payload (188 bytes)
   OBSEXC: DONE
   ## post push state
   # obstore: main
@@ -136,8 +135,7 @@
   added 1 changesets with 1 changes to 1 files
   OBSEXC: computing relevant nodes
   OBSEXC: computing markers relevant to 2 nodes
-  OBSEXC: pushing 2 markers
-  OBSEXC: sending 1 pushkey payload (188 bytes)
+  OBSEXC: pushing 2 markers in 1 pushkey payload (188 bytes)
   OBSEXC: DONE
   ## post push state
   # obstore: main
--- a/tests/test-exchange-C3.t	Tue Jun 03 01:37:08 2014 -0700
+++ b/tests/test-exchange-C3.t	Mon Jun 02 14:44:13 2014 -0700
@@ -85,8 +85,7 @@
   no changes found
   OBSEXC: computing relevant nodes
   OBSEXC: computing markers relevant to 1 nodes
-  OBSEXC: pushing 3 markers
-  OBSEXC: sending 1 pushkey payload (298 bytes)
+  OBSEXC: pushing 3 markers in 1 pushkey payload (298 bytes)
   OBSEXC: DONE
   ## post push state
   # obstore: main
@@ -137,8 +136,7 @@
   no changes found
   OBSEXC: computing relevant nodes
   OBSEXC: computing markers relevant to 1 nodes
-  OBSEXC: pushing 3 markers
-  OBSEXC: sending 1 pushkey payload (298 bytes)
+  OBSEXC: pushing 3 markers in 1 pushkey payload (298 bytes)
   OBSEXC: DONE
   ## post push state
   # obstore: main
--- a/tests/test-exchange-C4.t	Tue Jun 03 01:37:08 2014 -0700
+++ b/tests/test-exchange-C4.t	Mon Jun 02 14:44:13 2014 -0700
@@ -93,8 +93,7 @@
   no changes found
   OBSEXC: computing relevant nodes
   OBSEXC: computing markers relevant to 1 nodes
-  OBSEXC: pushing 2 markers
-  OBSEXC: sending 1 pushkey payload (188 bytes)
+  OBSEXC: pushing 2 markers in 1 pushkey payload (188 bytes)
   OBSEXC: DONE
   ## post push state
   # obstore: main
--- a/tests/test-exchange-D1.t	Tue Jun 03 01:37:08 2014 -0700
+++ b/tests/test-exchange-D1.t	Mon Jun 02 14:44:13 2014 -0700
@@ -76,8 +76,7 @@
   added 1 changesets with 1 changes to 1 files
   OBSEXC: computing relevant nodes
   OBSEXC: computing markers relevant to 2 nodes
-  OBSEXC: pushing 2 markers
-  OBSEXC: sending 1 pushkey payload (188 bytes)
+  OBSEXC: pushing 2 markers in 1 pushkey payload (188 bytes)
   OBSEXC: DONE
   ## post push state
   # obstore: main
--- a/tests/test-exchange-D2.t	Tue Jun 03 01:37:08 2014 -0700
+++ b/tests/test-exchange-D2.t	Mon Jun 02 14:44:13 2014 -0700
@@ -69,8 +69,7 @@
   no changes found
   OBSEXC: computing relevant nodes
   OBSEXC: computing markers relevant to 1 nodes
-  OBSEXC: pushing 2 markers
-  OBSEXC: sending 1 pushkey payload (188 bytes)
+  OBSEXC: pushing 2 markers in 1 pushkey payload (188 bytes)
   OBSEXC: DONE
   ## post push state
   # obstore: main
--- a/tests/test-exchange-D4.t	Tue Jun 03 01:37:08 2014 -0700
+++ b/tests/test-exchange-D4.t	Mon Jun 02 14:44:13 2014 -0700
@@ -92,8 +92,7 @@
   added 1 changesets with 1 changes to 1 files
   OBSEXC: computing relevant nodes
   OBSEXC: computing markers relevant to 2 nodes
-  OBSEXC: pushing 2 markers
-  OBSEXC: sending 1 pushkey payload (154 bytes)
+  OBSEXC: pushing 2 markers in 1 pushkey payload (154 bytes)
   OBSEXC: DONE
   ## post push state
   # obstore: main
--- a/tests/test-obsolete.t	Tue Jun 03 01:37:08 2014 -0700
+++ b/tests/test-obsolete.t	Mon Jun 02 14:44:13 2014 -0700
@@ -183,8 +183,7 @@
   added 5 changesets with 5 changes to 5 files (+1 heads)
   OBSEXC: computing relevant nodes
   OBSEXC: computing markers relevant to 5 nodes
-  OBSEXC: pushing 2 markers
-  OBSEXC: sending 1 pushkey payload (154 bytes)
+  OBSEXC: pushing 2 markers in 1 pushkey payload (154 bytes)
   OBSEXC: DONE
   $ hg -R ../other-new verify
   checking changesets
@@ -241,8 +240,7 @@
   added 1 changesets with 1 changes to 1 files (+1 heads)
   OBSEXC: computing relevant nodes
   OBSEXC: computing markers relevant to 5 nodes
-  OBSEXC: pushing 3 markers
-  OBSEXC: sending 1 pushkey payload (230 bytes)
+  OBSEXC: pushing 3 markers in 1 pushkey payload (230 bytes)
   OBSEXC: DONE
   $ qlog -R ../other-new
   5
@@ -267,8 +265,7 @@
   no changes found
   OBSEXC: computing relevant nodes
   OBSEXC: computing markers relevant to 5 nodes
-  OBSEXC: pushing 3 markers
-  OBSEXC: sending 1 pushkey payload (230 bytes)
+  OBSEXC: pushing 3 markers in 1 pushkey payload (230 bytes)
   OBSEXC: DONE
   [1]
 
@@ -551,8 +548,7 @@
   added 2 changesets with 1 changes to [12] files (re)
   OBSEXC: computing relevant nodes
   OBSEXC: computing markers relevant to 5 nodes
-  OBSEXC: pushing 7 markers
-  OBSEXC: sending 1 pushkey payload (565 bytes)
+  OBSEXC: pushing 7 markers in 1 pushkey payload (565 bytes)
   OBSEXC: DONE
   $ hg up -q 10
   $ mkcommit "obsol_d'''"
@@ -567,8 +563,7 @@
   added 1 changesets with 1 changes to 1 files (+1 heads)
   OBSEXC: computing relevant nodes
   OBSEXC: computing markers relevant to 5 nodes
-  OBSEXC: pushing 8 markers
-  OBSEXC: sending 1 pushkey payload (642 bytes)
+  OBSEXC: pushing 8 markers in 1 pushkey payload (642 bytes)
   OBSEXC: DONE
   $ cd ..
 
--- a/tests/test-tutorial.t	Tue Jun 03 01:37:08 2014 -0700
+++ b/tests/test-tutorial.t	Mon Jun 02 14:44:13 2014 -0700
@@ -407,8 +407,7 @@
   added 3 changesets with 3 changes to 1 files
   OBSEXC: computing relevant nodes
   OBSEXC: computing markers relevant to 5 nodes
-  OBSEXC: pushing 6 markers
-  OBSEXC: sending 1 pushkey payload (609 bytes)
+  OBSEXC: pushing 6 markers in 1 pushkey payload (609 bytes)
   OBSEXC: DONE
 
 for simplicity sake we get the bathroom change in line again
@@ -741,8 +740,7 @@
   added 2 changesets with 2 changes to 1 files (+1 heads)
   OBSEXC: computing relevant nodes
   OBSEXC: computing markers relevant to 7 nodes
-  OBSEXC: pushing 10 markers
-  OBSEXC: sending 1 pushkey payload (1004 bytes)
+  OBSEXC: pushing 10 markers in 1 pushkey payload (1004 bytes)
   OBSEXC: DONE
 
 remote get a warning that current working directory is based on an obsolete changeset