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
This commit is contained in:
parent
94f5c73746
commit
36bce52f63
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue