Skip to content

Commit

Permalink
[PATCH] archimport: Actually cope with merges from "remote" repositor…
Browse files Browse the repository at this point in the history
…ies. Plus: Nicer messages.

archimport was refusing to import commits that had merges from repositories
that it didn't know about. Fixed.

Also brings in nicer messages.

Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Martin Langhoff authored and Junio C Hamano committed Oct 2, 2005
1 parent 38ec15a commit 37f15d5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion git-archimport.perl
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,12 @@ END
# skip commits already in repo
#
if (ptag($ps->{id})) {
$opt_v && print "Skipping already imported: $ps->{id}\n";
$opt_v && print " * Skipping already imported: $ps->{id}\n";
next;
}

print " * Starting to work on $ps->{id}\n";

#
# create the branch if needed
#
Expand Down Expand Up @@ -675,6 +677,10 @@ sub find_parents {
# that branch.
#
foreach my $branch (keys %branches) {

# check that we actually know about the branch
next unless -e "$git_dir/refs/heads/$branch";

my $mergebase = `git-merge-base $branch $ps->{branch}`;
die "Cannot find merge base for $branch and $ps->{branch}" if $?;
chomp $mergebase;
Expand Down

0 comments on commit 37f15d5

Please sign in to comment.