X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=darcs-all;h=f936bde63f3af0aaf8eecfa814336e4afdd44fa6;hp=ff7461677345eaee4d183b39bc3b46865f36079c;hb=d108044bef62f6a0d579c92ced5e8188f72edc2d;hpb=c07d7849d440a1ff371690654205c02c06b56fd0 diff --git a/darcs-all b/darcs-all index ff74616..f936bde 100644 --- a/darcs-all +++ b/darcs-all @@ -268,6 +268,23 @@ sub darcsget { } } +sub darcsupstreampull { + my $localpath; + my $upstream; + my $line; + + for $line (@packages) { + $localpath = $$line{"localpath"}; + $upstream = $$line{"upstream"}; + + if ($upstream ne "-") { + if (-d $localpath) { + darcs ("pull", @_, "--repodir", $localpath, $upstream); + } + } + } +} + sub main { if (! -d "compiler") { die "error: darcs-all must be run from the top level of the ghc tree." @@ -324,6 +341,10 @@ sub main { if ($command eq "get") { darcsget @_; } + elsif ($command eq "upstreampull") { + shift; + darcsupstreampull @_; + } else { if ($command =~ /^(?:w|wh|wha|what|whats|whatsn|whatsne|whatsnew)$/) { # Hack around whatsnew failing if there are no changes