scm: return nil at model default_branch and override at git model.
Redmine Git and Mercurial adapter support *branches*.
Mercurial default branch is *dafault*.
But, it is popular to show all revisions on the top page for Mercurial GUI.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.2-stable@6244
e93f8b46-1217-0410-a6f0-
8f06a7374b81
end
def default_branch
- scm.default_branch
+ nil
end
def properties(path, identifier=nil)
scm.tags
end
+ def default_branch
+ scm.default_branch
+ end
+
def find_changeset_by_name(name)
return nil if name.nil? || name.empty?
e = changesets.find(:first, :conditions => ['revision = ?', name.to_s])