From 36bce52f63a101b18cf910464784344b01fa8832 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 11 Jul 2011 02:08:23 +0000 Subject: [PATCH] Merged r6246 from trunk. scm: mercurial: do nothing in fetching if info is nil. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.2-stable@6254 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/repository/mercurial.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/repository/mercurial.rb b/app/models/repository/mercurial.rb index 4c6fae23d..71fea0bc4 100644 --- a/app/models/repository/mercurial.rb +++ b/app/models/repository/mercurial.rb @@ -123,6 +123,7 @@ class Repository::Mercurial < Repository private :latest_changesets_cond def fetch_changesets + return if scm.info.nil? scm_rev = scm.info.lastrev.revision.to_i db_rev = latest_changeset ? latest_changeset.revision.to_i : -1 return unless db_rev < scm_rev # already up-to-date