diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-10-27 00:35:43 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-10-27 00:35:43 +0000 |
commit | 01d3af65b392784be9054fce1764bcd1a85294d4 (patch) | |
tree | 4c9b7b5103a9482da16d1663b1c86bd2f29697a5 /app/models/repository | |
parent | ad9e486077f903397e7f11e9c28076036555f9b7 (diff) | |
download | redmine-01d3af65b392784be9054fce1764bcd1a85294d4.tar.gz redmine-01d3af65b392784be9054fce1764bcd1a85294d4.zip |
scm: git: recovery and improve comments of fetching from 1.1 about harmful influence that git does not have the revision number (#9472)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7658 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/repository')
-rw-r--r-- | app/models/repository/git.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/models/repository/git.rb b/app/models/repository/git.rb index a834a765a..be307a5be 100644 --- a/app/models/repository/git.rb +++ b/app/models/repository/git.rb @@ -95,6 +95,17 @@ class Repository::Git < Repository options = {:report_last_commit => extra_report_last_commit}) end + # With SCMs that have a sequential commit numbering, + # such as Subversion and Mercurial, + # Redmine is able to be clever and only fetch changesets + # going forward from the most recent one it knows about. + # + # However, Git does not have a sequential commit numbering. + # + # In order to fetch only new adding revisions, + # Redmine need to parse revisions per branch. + # Branch "last_scmid" is for this requirement. + # # In Git and Mercurial, revisions are not in date order. # Redmine Mercurial fixed issues. # * Redmine Takes Too Long On Large Mercurial Repository |