scm: darcs: code clean up model.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5432 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
c4616e0ae0
commit
fbf23a14b8
|
@ -47,7 +47,9 @@ class Repository::Darcs < Repository
|
||||||
if entries
|
if entries
|
||||||
entries.each do |entry|
|
entries.each do |entry|
|
||||||
# Search the DB for the entry's last change
|
# Search the DB for the entry's last change
|
||||||
changeset = changesets.find_by_scmid(entry.lastrev.scmid) if entry.lastrev && !entry.lastrev.scmid.blank?
|
if entry.lastrev && !entry.lastrev.scmid.blank?
|
||||||
|
changeset = changesets.find_by_scmid(entry.lastrev.scmid)
|
||||||
|
end
|
||||||
if changeset
|
if changeset
|
||||||
entry.lastrev.identifier = changeset.revision
|
entry.lastrev.identifier = changeset.revision
|
||||||
entry.lastrev.name = changeset.revision
|
entry.lastrev.name = changeset.revision
|
||||||
|
|
Loading…
Reference in New Issue