Skip to content

Commit

Permalink
Merged r6246 from trunk.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
marutosi committed Jul 11, 2011
1 parent 94f5c73 commit 36bce52
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/repository/mercurial.rb
Expand Up @@ -123,6 +123,7 @@ def latest_changesets_cond(path, rev, limit)
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
Expand Down

0 comments on commit 36bce52

Please sign in to comment.