Mercurial > hg > soundsoftware-site
comparison test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb @ 1494:e248c7af89ec redmine-2.4
Update to Redmine SVN revision 12979 on 2.4-stable branch
author | Chris Cannam |
---|---|
date | Mon, 17 Mar 2014 08:54:02 +0000 |
parents | 261b3d9a4903 |
children | dffacf8a6908 |
comparison
equal
deleted
inserted
replaced
1464:261b3d9a4903 | 1494:e248c7af89ec |
---|---|
1 # Redmine - project management software | 1 # Redmine - project management software |
2 # Copyright (C) 2006-2013 Jean-Philippe Lang | 2 # Copyright (C) 2006-2014 Jean-Philippe Lang |
3 # | 3 # |
4 # This program is free software; you can redistribute it and/or | 4 # This program is free software; you can redistribute it and/or |
5 # modify it under the terms of the GNU General Public License | 5 # modify it under the terms of the GNU General Public License |
6 # as published by the Free Software Foundation; either version 2 | 6 # as published by the Free Software Foundation; either version 2 |
7 # of the License, or (at your option) any later version. | 7 # of the License, or (at your option) any later version. |
87 [REPOSITORY_PATH, REPOSITORY_PATH + "/", | 87 [REPOSITORY_PATH, REPOSITORY_PATH + "/", |
88 REPOSITORY_PATH + "//"].each do |repo| | 88 REPOSITORY_PATH + "//"].each do |repo| |
89 adp = Redmine::Scm::Adapters::MercurialAdapter.new(repo) | 89 adp = Redmine::Scm::Adapters::MercurialAdapter.new(repo) |
90 repo_path = adp.info.root_url.gsub(/\\/, "/") | 90 repo_path = adp.info.root_url.gsub(/\\/, "/") |
91 assert_equal REPOSITORY_PATH, repo_path | 91 assert_equal REPOSITORY_PATH, repo_path |
92 assert_equal '31', adp.info.lastrev.revision | 92 assert_equal '33', adp.info.lastrev.revision |
93 assert_equal '31eeee7395c8',adp.info.lastrev.scmid | 93 assert_equal '2e6d54642923',adp.info.lastrev.scmid |
94 end | 94 end |
95 end | 95 end |
96 | 96 |
97 def test_revisions | 97 def test_revisions |
98 revisions = @adapter.revisions(nil, 2, 4) | 98 revisions = @adapter.revisions(nil, 2, 4) |