die "cannot make branch starting at base of another;".
" check out a real branch\n" if $current->{Kind} eq 'base';
-die "strange branch ref, making new branch with this as dep is unwise\n"
- if $current->{Kind} eq 'weird';
+die "strange branch ref $current->{Kind} $current->{Ref},\n".
+ " making new branch with this as dep is unwise\n"
+ unless ($current->{Kind} eq 'foreign' ||
+ $current->{Kind} eq 'tip');
sub fillin ($$$) {
my ($key, $newval, $what) = @_;