All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Add sequence number to 'xm info'
@ 2005-09-28 22:35 Dan Smith
  2005-09-29 15:45 ` Hollis Blanchard
  0 siblings, 1 reply; 8+ messages in thread
From: Dan Smith @ 2005-09-28 22:35 UTC (permalink / raw)
  To: Xen Developers

[-- Attachment #1: Type: text/plain, Size: 404 bytes --]

This patch causes the short changeset id or sequence number to be
included on the 'xen_changeset' line in the 'xm info' output.

We plan to use this sequence number as a very fuzzy way of sorting
test reports so that we can start looking for trends.  While we know
it won't result in a perfect ordering of changesets for reporting, it
will help us get close.

Signed-off-by: Dan Smith <danms@us.ibm.com>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: changeset.patch --]
[-- Type: text/x-patch, Size: 1004 bytes --]

diff -r 5e5ae8340956 xen/Makefile
--- a/xen/Makefile	Wed Sep 28 20:06:49 2005
+++ b/xen/Makefile	Wed Sep 28 15:07:14 2005
@@ -99,7 +99,7 @@
 	    -e 's/@@version@@/$(XEN_VERSION)/g' \
 	    -e 's/@@subversion@@/$(XEN_SUBVERSION)/g' \
 	    -e 's/@@extraversion@@/$(XEN_EXTRAVERSION)/g' \
-	    -e 's!@@changeset@@!$(shell (hg parents | awk -F: '/^changeset/{CS=$$3};{FS="date:[ ]+"}/^date/{D=$$2}; END {print D, CS}') 2>/dev/null || (head -n 6 ChangeLog | awk -F: '/^changeset/{CS=$$3};{FS="date:[ ]+"}/^date/{D=$$2}; END {print D, CS}') 2>/dev/null || echo information unavailable)!g' \
+	    -e 's!@@changeset@@!$(shell (hg parents | awk '{FS="changeset:[ ]+"}/^changeset/{CS=$$2};{FS="date:[ ]+"}/^date/{D=$$2}; END {print D, CS}') 2>/dev/null || (head -n 6 ChangeLog | awk -F: '/^changeset/{CS=$$3};{FS="date:[ ]+"}/^date/{D=$$2}; END {print D, CS}') 2>/dev/null || echo information unavailable)!g' \
 	    < include/xen/compile.h.in > $@.new
 	@cat include/xen/banner.h >> $@.new
 	@mv -f $@.new $@

[-- Attachment #3: Type: text/plain, Size: 87 bytes --]

-- 
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: danms@us.ibm.com

[-- Attachment #4: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: [PATCH] Add sequence number to 'xm info'
@ 2005-09-28 23:03 Ian Pratt
  2005-09-29  0:14 ` Dan Smith
  0 siblings, 1 reply; 8+ messages in thread
From: Ian Pratt @ 2005-09-28 23:03 UTC (permalink / raw)
  To: Dan Smith, Xen Developers

 
> This patch causes the short changeset id or sequence number 
> to be included on the 'xen_changeset' line in the 'xm info' output.
> 
> We plan to use this sequence number as a very fuzzy way of 
> sorting test reports so that we can start looking for trends. 
>  While we know it won't result in a perfect ordering of 
> changesets for reporting, it will help us get close.

I guess for trees that are direct clones of xenbits with no local
modifications then the short id is meaningful. Such trees are probably
in the majority.
It does feel slightly distateful to be including such an id, even though
I can see the point (I wrote the regex deliberately to strip it out). I
guess it doesn't really hurt providing people know what they're doing.

Ian

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-09-29 17:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-28 22:35 [PATCH] Add sequence number to 'xm info' Dan Smith
2005-09-29 15:45 ` Hollis Blanchard
2005-09-29 16:02   ` Sean Dague
2005-09-29 16:22     ` Hollis Blanchard
2005-09-29 16:05   ` Dan Smith
2005-09-29 17:41     ` Hollis Blanchard
  -- strict thread matches above, loose matches on Subject: below --
2005-09-28 23:03 Ian Pratt
2005-09-29  0:14 ` Dan Smith

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.