Skip to content

Commit

Permalink
Support incremental pulling when some old patches were no-ops (e.g. e…
Browse files Browse the repository at this point in the history
…mpty directory additions)
  • Loading branch information
Steve authored and Steve committed Sep 17, 2007
1 parent 5eb2249 commit 38670d8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion darcs-to-git
Expand Up @@ -128,4 +128,12 @@ unless File.directory?("_darcs")
end


DarcsPatch.read_from_repo(SRCREPO).each { |patch| patch.pull_and_apply }
patches = DarcsPatch.read_from_repo(SRCREPO)

patches_to_pull = []
while patch = patches.pop
break if patch.id_in_git_repo
patches_to_pull.unshift(patch)
end

patches_to_pull.each { |patch| patch.pull_and_apply }

0 comments on commit 38670d8

Please sign in to comment.