diff options
author | Junio C Hamano <junkio@cox.net> | 2006-04-07 02:12:18 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-04-07 02:12:18 -0700 |
commit | 38b525e09f9088338e03ad0169e3cc7b5ab2e7af (patch) | |
tree | 86b331d29f0d6c3d5b1a044b664297ce7361bc76 /git-svnimport.perl | |
parent | 2db70f684ad67f088dde17967290ee2733b588ad (diff) | |
parent | e67c66251a41653e3698580410121c9afc46cd1a (diff) | |
download | git-38b525e09f9088338e03ad0169e3cc7b5ab2e7af.tar.gz |
Merge branch 'kh/svn' into next
* kh/svn:
git-svnimport: Don't assume that copied files haven't changed
Add Documentation/technical/pack-format.txt
Added Packing Heursitics IRC writeup.
Add documentation for git-imap-send.
Diffstat (limited to 'git-svnimport.perl')
-rwxr-xr-x | git-svnimport.perl | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/git-svnimport.perl b/git-svnimport.perl index 114784ff3e..4d5371ca90 100755 --- a/git-svnimport.perl +++ b/git-svnimport.perl @@ -616,9 +616,7 @@ sub commit { } if(($action->[0] eq "A") || ($action->[0] eq "R")) { my $node_kind = node_kind($branch,$path,$revision); - if($action->[1]) { - copy_path($revision,$branch,$path,$action->[1],$action->[2],$node_kind,\@new,\@parents); - } elsif ($node_kind eq $SVN::Node::file) { + if ($node_kind eq $SVN::Node::file) { my $f = get_file($revision,$branch,$path); if ($f) { push(@new,$f) if $f; @@ -627,8 +625,15 @@ sub commit { print STDERR "$revision: $branch: could not fetch '$opath'\n"; } } elsif ($node_kind eq $SVN::Node::dir) { - get_ignore(\@new, \@old, $revision, - $branch,$path); + if($action->[1]) { + copy_path($revision, $branch, + $path, $action->[1], + $action->[2], $node_kind, + \@new, \@parents); + } else { + get_ignore(\@new, \@old, $revision, + $branch, $path); + } } } elsif ($action->[0] eq "D") { push(@old,$path); |