Project

General

Profile

Defect #3449 » issue-3449-only.patch

Toshi MARUYAMA, 2010-02-11 22:11

View differences:

app/models/repository/mercurial.rb Fri Feb 12 05:12:54 2010 +0900 → app/models/repository/mercurial.rb Fri Feb 12 05:14:56 2010 +0900
56 56
    scm_info = scm.info
57 57
    if scm_info
58 58
      # latest revision found in database
59
      db_revision = latest_changeset ? latest_changeset.revision.to_i : -1
59
      db_revision = changesets.count - 1
60 60
      # latest revision in the repository
61 61
      latest_revision = scm_info.lastrev
62 62
      return if latest_revision.nil?
    (1-1/1)