Adding a way to ignore hg incoming on sysupdate.

This commit is contained in:
Christoph Lohmann 2012-04-16 15:57:40 +02:00
parent 95d7fa1c0e
commit e20bac0e98

View file

@ -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