WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

Re: [Xen-ia64-devel] Sparse tree merge-up script

Okay, one more automation patch.  The upstream kernel tree doesn't
have tags for 2.6.16.13, etc.  This automatically calls ketchup to add
the tag in that case.

Signed-off-by: Aron Griffis <aron@xxxxxx>

--- sparse-merge.agriffis       2006-05-16 14:26:53.000000000 -0400
+++ sparse-merge        2006-05-16 14:22:14.000000000 -0400
@@ -23,7 +23,17 @@
 # Save current revision to restore when done
 cd $LINUXPATH
 OLDCSET=$(hg parents | awk '/^changeset:/{print($2)}' | cut -f 1 -d :)
-hg up -C $OLDTAG
+for t in $OLDTAG $NEWTAG; do
+    if ! hg tags | cut -f1 -d' ' | grep -Fx $t; then
+       echo "Tag $t not found, ketching up"
+       hg up -C ${t%.*} || exit 1
+       ketchup ${t#v} || exit 1
+       hg addremove
+       hg ci -m $t
+       hg tag -l $t
+    fi
+done
+hg up -C $OLDTAG || exit 1
 cd $WD
 for i in $(hg manifest | awk '{print($3)}' | grep $SPARSEDIR | grep ia64); do
        cd $WD

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

<Prev in Thread] Current Thread [Next in Thread>