ref: 7384fedab3442439dd01e7ca33b50db9c9a7f4b4
parent: c360a081b34498e8ec80f7325d7ffd3d73ec8275
author: Christoph Lohmann <20h@r-36.net>
date: Mon Apr 16 11:57:40 EDT 2012
Adding a way to ignore hg incoming on sysupdate.
--- a/rc/bin/sysupdate
+++ b/rc/bin/sysupdate
@@ -1,6 +1,24 @@
#!/bin/rc
+
rfork n
cd /
+
+incoming=1
+
+switch($1){+case -h
+ echo usage: sysupdate [-i] >[1=2]
+ exit usage
+case -i
+ incoming=0
+}
+
+rfork n
+cd /
if(! test -d .hg)
bind -ac /dist/plan9front /
-hg incoming && hg -v pull -u
+
+if(~ $incoming 1)
+ hg incoming
+hg -v pull -u
+
--
⑨