Skip to content
Browse files

Be clear when nothing needed to be done.

  • Loading branch information...
1 parent d596b35 commit ceab8c5233095be1727fb9a9a71af56402b935dd @nominolo nominolo committed May 9, 2008
Showing with 6 additions and 2 deletions.
  1. +6 −2 darcs-to-git
View
8 darcs-to-git
@@ -377,9 +377,13 @@ def check_consistent(pulled)
ok = $? == 0
end
if ok then
- puts "\nPulled #{pulled.length} patch#{pulled.length != 1 ? "es" : ""}."
- puts "\nDarcs import successful! You may now want to run `git gc' to
+ if pulled.length == 0 then
+ puts "\nNothing to pull."
+ else
+ puts "\nPulled #{pulled.length} patch#{pulled.length != 1 ? "es" : ""}."
+ puts "\nDarcs import successful! You may now want to run `git gc' to
improve space usage the git repo"
+ end
else
puts "!!! There were differences! See diff above for details."
puts "!!! It maybe that the source repository was dirty."

0 comments on commit ceab8c5

Please sign in to comment.
Something went wrong with that request. Please try again.