projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Split out assignment rewriting to own module.
[ghc-hetmet.git]
/
sync-all
diff --git
a/sync-all
b/sync-all
index
5dc6a40
..
ac06af1
100755
(executable)
--- a/
sync-all
+++ b/
sync-all
@@
-142,13
+142,12
@@
sub parsePackages {
foreach (@repos) {
chomp;
$lineNum++;
foreach (@repos) {
chomp;
$lineNum++;
- if (/^([^# ]+) +([^ ]+) +([^ ]+) +([^ ]+) +([^ ]+)$/) {
+ if (/^([^# ]+) +([^ ]+) +([^ ]+) +([^ ]+)$/) {
my %line;
$line{"localpath"} = $1;
$line{"tag"} = $2;
$line{"remotepath"} = $3;
$line{"vcs"} = $4;
my %line;
$line{"localpath"} = $1;
$line{"tag"} = $2;
$line{"remotepath"} = $3;
$line{"vcs"} = $4;
- $line{"upstream"} = $5;
push @packages, \%line;
}
elsif (! /^(#.*)?$/) {
push @packages, \%line;
}
elsif (! /^(#.*)?$/) {
@@
-198,7
+197,6
@@
sub scmall {
my $tag;
my $remotepath;
my $scm;
my $tag;
my $remotepath;
my $scm;
- my $upstream;
my $line;
my $branch_name;
my $subcommand;
my $line;
my $branch_name;
my $subcommand;
@@
-252,7
+250,6
@@
sub scmall {
$tag = $$line{"tag"};
$remotepath = $$line{"remotepath"};
$scm = $$line{"vcs"};
$tag = $$line{"tag"};
$remotepath = $$line{"remotepath"};
$scm = $$line{"vcs"};
- $upstream = $$line{"upstream"};
# Check the SCM is OK as early as possible
die "Unknown SCM: $scm" if (($scm ne "darcs") and ($scm ne "git"));
# Check the SCM is OK as early as possible
die "Unknown SCM: $scm" if (($scm ne "darcs") and ($scm ne "git"));
@@
-366,6
+363,9
@@
sub scmall {
my @scm_args = ("log", "$branch_name..");
scm ($localpath, $scm, @scm_args, @args);
}
my @scm_args = ("log", "$branch_name..");
scm ($localpath, $scm, @scm_args, @args);
}
+ elsif ($command =~ /^log$/) {
+ scm ($localpath, $scm, "log", @args);
+ }
elsif ($command =~ /^remote$/) {
my @scm_args;
if ($subcommand eq 'add') {
elsif ($command =~ /^remote$/) {
my @scm_args;
if ($subcommand eq 'add') {
@@
-434,6
+434,7
@@
Supported commands:
* clean
* reset
* config
* clean
* reset
* config
+ * log
Available package-tags are:
END
Available package-tags are:
END