# HG changeset patch # User Christophe Lincoln # Date 1232232480 -3600 # Node ID b314f3de7edfd5cdb29dd605be9179634e42fd9d # Parent 4e05e33a12cfe7373256ae7ea61ebc1c43267159 Add command 'hgup' to pull/update a wok under Hg diff -r 4e05e33a12cf -r b314f3de7edf tazwok --- a/tazwok Mon Jan 05 04:53:06 2009 +0100 +++ b/tazwok Sat Jan 17 23:48:00 2009 +0100 @@ -6,7 +6,7 @@ # packages or a list of packages with one command, rebuild the full distro, # generate a packages repository and also list and get info about packages. # -# (C) 2007-2008 SliTaz - GNU General Public License. +# (C) 2007-2009 SliTaz - GNU General Public License. # VERSION=2.1 @@ -1206,6 +1206,13 @@ echo "" fi ;; + hgup) + # Pull and update an Hg wok. + if ls -l $WOK/.hg/hgrc | grep -q "root"; then + check_root + fi + cd $WOK + hg pull && hg update ;; usage|*) # Print usage also for all unknown commands. #