lib/ohloh_scm/hg/scm.rb in ohloh_scm-3.0.15 vs lib/ohloh_scm/hg/scm.rb in ohloh_scm-3.0.16
- old
+ new
@@ -40,9 +40,10 @@
run "cd '#{url}' && hg revert --all && hg pull #{branch_opts} -u -y '#{remote_scm.url}'"
end
def clean_up_disk
return unless FileTest.exist?(url)
+ sleep 1
run "cd #{url} && find . -maxdepth 1 -not -name .hg -not -name . -print0"\
' | xargs -0 rm -rf --'
end
end