@@ -58,7 +58,9 class Repository::Mercurial < Repository | |||
|
58 | 58 | # latest revision found in database |
|
59 | 59 | db_revision = latest_changeset ? latest_changeset.revision.to_i : -1 |
|
60 | 60 | # latest revision in the repository |
|
61 |
|
|
|
61 | latest_revision = scm_info.lastrev | |
|
62 | return if latest_revision.nil? | |
|
63 | scm_revision = latest_revision.identifier.to_i | |
|
62 | 64 | if db_revision < scm_revision |
|
63 | 65 | logger.debug "Fetching changesets for repository #{url}" if logger && logger.debug? |
|
64 | 66 | identifier_from = db_revision + 1 |
@@ -105,7 +105,8 module Redmine | |||
|
105 | 105 | line_feeds += 1 if line.chomp.empty? |
|
106 | 106 | end |
|
107 | 107 | end |
|
108 | revisions << build_revision_from_changeset(changeset) | |
|
108 | # Add the last changeset if there is one left | |
|
109 | revisions << build_revision_from_changeset(changeset) if changeset[:date] | |
|
109 | 110 | end |
|
110 | 111 | return nil if $? && $?.exitstatus != 0 |
|
111 | 112 | revisions |
General Comments 0
You need to be logged in to leave comments.
Login now