This pulls from the upstream repos, for those packages which have
upstreams
}
}
+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."
if ($command eq "get") {
darcsget @_;
}
+ if ($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