X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=darcs-all;h=08fa8c5f52016684256a7338bbd8b244176fea72;hp=56290ab8dc03a45cee9693589a55d63b838f4187;hb=60762c678c83e370609001addc8f52efcd657139;hpb=423e325a3929a7545c2cab5d6d3aa2462ac86174 diff --git a/darcs-all b/darcs-all index 56290ab..08fa8c5 100644 --- a/darcs-all +++ b/darcs-all @@ -125,6 +125,7 @@ sub darcsall { my $path; my $tag; my @repos; + my $command = $_[0]; my ($repo_base, $checked_out_tree) = getrepo(); @@ -132,7 +133,7 @@ sub darcsall { @repos = ; close IN; - REPO: foreach (@repos) { + foreach (@repos) { chomp; if (/^([^# ]+) +(?:([^ ]+) +)?([^ ]+) +([^ ]+)$/) { $localpath = $1; @@ -148,7 +149,12 @@ sub darcsall { if (-d "$localpath/_darcs") { if ($want_remote_repo) { - darcs (@_, "--repodir", $localpath, $path); + if ($command =~ /^opt/) { + # Allows ./darcs-all optimize --relink + darcs (@_, "--repodir", $localpath, "--sibling=$path"); + } else { + darcs (@_, "--repodir", $localpath, $path); + } } else { darcs (@_, "--repodir", $localpath); } @@ -272,12 +278,45 @@ sub main { # Hack around whatsnew failing if there are no changes $ignore_failure = 1; } - if ($command =~ /^(pul|pus|sen|put)/) { + if ($command =~ /^(pul|pus|sen|put|opt)/) { $want_remote_repo = 1; } darcsall @_; } } +END { + message "== Checking for old bytestring repo"; + if (-d "libraries/bytestring/_darcs") { + if ((system "darcs annotate --repodir libraries/bytestring --match 'hash 20080118173113-3fd76-d5b74c04372a297b585ebea4e16d524551ce5035' > /dev/null 2> /dev/null") == 0) { + print < /dev/null 2> /dev/null") == 0) { + print <