summaryrefslogtreecommitdiffstats
path: root/lib/redmine/scm/adapters
Commit message (Collapse)AuthorAgeFilesLines
...
* Ruby1.9: scm: use :set_encoding instead of "RUBY_VERSION < '1.9'" for ↵Toshi MARUYAMA2012-03-281-5/+2
| | | | | | IO.popen (#10470) git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9280 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed DarcsAdapter for ruby 1.9.3.Jean-Philippe Lang2012-03-021-1/+2
| | | | | | Unlike 1.8 and 1.9.2, Entries#compact returns an Array with 1.9.3, instead of an Entries object, resulting in a "undefined method `sort_by_name'" error. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9051 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: explicitly return string as default branch (#10207)Toshi MARUYAMA2012-02-121-2/+3
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8857 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: use default branch from HEAD (#10207)Toshi MARUYAMA2012-02-121-4/+11
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8856 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removed extra argument from SubversionAdapter#diff.Jean-Philippe Lang2012-02-111-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8843 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: raise exception if "git log" is error and block is given in lib ↵Toshi MARUYAMA2012-02-101-2/+7
| | | | | | revision method (#8857) git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8837 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: add includes and excludes options to lib revisions method (#8857)Toshi MARUYAMA2012-02-081-3/+11
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8815 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: remove unused "--all" option of "git log" in lib revisions methodToshi MARUYAMA2012-02-081-1/+0
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8813 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Backout 8239.Etienne Massip2011-12-151-1/+0
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8241 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Log return code if error.Etienne Massip2011-12-151-0/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8239 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: remove unused --since option (#4547, #4716, #7146, #6013)Toshi MARUYAMA2011-12-101-1/+0
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8156 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Handle spaces in development scm stderr log file path.Etienne Massip2011-12-081-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8129 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: lib: return array of Branch class instead of array of ↵Toshi MARUYAMA2011-10-281-1/+8
| | | | | | strings at branches method (#5501) git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7673 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: lib: return array of Branch class instead of array of strings at ↵Toshi MARUYAMA2011-10-281-2/+6
| | | | | | | | branches method (#5501) Contributed by Jan Topiński. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7671 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: lib: add Branch class to abstract adapter (#5501)Toshi MARUYAMA2011-10-281-0/+4
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7670 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: lib: add parents to Revision class (#5501)Toshi MARUYAMA2011-10-281-4/+10
| | | | | | Contributed by Jan Topiński. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7668 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: lib: add parents to Revision class (#5501)Toshi MARUYAMA2011-10-281-1/+6
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7666 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: lib: add parents attribute to Revision class of abstract adapter (#5501)Toshi MARUYAMA2011-10-281-1/+3
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7665 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: remove unused "tags" from xml log templeteToshi MARUYAMA2011-10-281-2/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7664 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: add parents to xml log template (#5501)Toshi MARUYAMA2011-10-281-1/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7663 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: drop supporting below Mercurial 1.1 (#9465)Toshi MARUYAMA2011-10-252-19/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On November 1st 2011, Mercurial 2.0 will be released. On Mercurial 1.1.2, unit lib test fails with following error. <pre> Traceback (most recent call last): File "/WEB-DOWN/hg-repo/hg-crew/hg", line 20, in <module> mercurial.dispatch.run() File "/WEB-DOWN/hg-repo/hg-crew/mercurial/dispatch.py", line 20, in run sys.exit(dispatch(sys.argv[1:])) File "/WEB-DOWN/hg-repo/hg-crew/mercurial/dispatch.py", line 29, in dispatch return _runcatch(u, args) File "/WEB-DOWN/hg-repo/hg-crew/mercurial/dispatch.py", line 45, in _runcatch return _dispatch(ui, args) File "/WEB-DOWN/hg-repo/hg-crew/mercurial/dispatch.py", line 367, in _dispatch ret = _runcommand(ui, options, cmd, d) File "/WEB-DOWN/hg-repo/hg-crew/mercurial/dispatch.py", line 416, in _runcommand return checkargs() File "/WEB-DOWN/hg-repo/hg-crew/mercurial/dispatch.py", line 376, in checkargs return cmdfunc() File "/WEB-DOWN/hg-repo/hg-crew/mercurial/dispatch.py", line 361, in <lambda> d = lambda: util.checksignature(func)(ui, *args, **cmdoptions) File "/WEB-DOWN/hg-repo/hg-crew/mercurial/util.py", line 715, in check return func(*args, **kwargs) File "/REDMINE-1/hg-workdir/redmine-bb-all/lib/redmine/scm/adapters/mercurial/redminehelper.py", line 149, in rhlog if hg.util.version() >= '1.6': AttributeError: 'module' object has no attribute 'version' 1) Error: test_nodes_in_branch(MercurialAdapterTest): Redmine::Scm::Adapters::MercurialAdapter::HgCommandAborted: hg exited with non-zero status: 1 lib/redmine/scm/adapters/mercurial_adapter.rb:306:in `hg' lib/redmine/scm/adapters/mercurial_adapter.rb:234:in `nodes_in_branch' test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb:311:in `test_nodes_in_branch' test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb:304:in `each' test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb:304:in `test_nodes_in_branch' </pre> git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7650 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: switch rev parameter of extension rhlog() if above Mercurial ↵Toshi MARUYAMA2011-10-241-2/+5
| | | | | | | | | | | | | | | 1.6 or not (#9465) On Mercurial 1.5, following error raises. <pre> hg --config extensions.redminehelper=lib/redmine/scm/adapters/mercurial/redminehelper.py \ --rhbranch default --from default --to 0 abort: unknown revision '"default"'! </pre> git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7641 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: fix extension cmdtable on Mercurial 1.5 (#9465)Toshi MARUYAMA2011-10-241-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before Mercurial revision "40c06bbf58be":http://www.selenic.com/repo/hg-stable/rev/40c06bbf58be , following error raises. <pre> Traceback (most recent call last): File "/WEB-DOWN/hg-repo/hg-crew/hg", line 27, in <module> mercurial.dispatch.run() File "/WEB-DOWN/hg-repo/hg-crew/mercurial/dispatch.py", line 16, in run sys.exit(dispatch(sys.argv[1:])) File "/WEB-DOWN/hg-repo/hg-crew/mercurial/dispatch.py", line 30, in dispatch return _runcatch(u, args) File "/WEB-DOWN/hg-repo/hg-crew/mercurial/dispatch.py", line 47, in _runcatch return _dispatch(ui, args) File "/WEB-DOWN/hg-repo/hg-crew/mercurial/dispatch.py", line 398, in _dispatch cmd, func, args, options, cmdoptions = _parse(lui, args) File "/WEB-DOWN/hg-repo/hg-crew/mercurial/dispatch.py", line 277, in _parse args = fancyopts.fancyopts(args, c, cmdoptions, True) File "/WEB-DOWN/hg-repo/hg-crew/mercurial/fancyopts.py", line 62, in fancyopts for short, name, default, comment in options: ValueError: too many values to unpack 1) Error: test_nodes_in_branch(MercurialAdapterTest): Redmine::Scm::Adapters::MercurialAdapter::HgCommandAborted: hg exited with non-zero status: 1 lib/redmine/scm/adapters/mercurial_adapter.rb:306:in `hg' lib/redmine/scm/adapters/mercurial_adapter.rb:234:in `nodes_in_branch' test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb:311:in `test_nodes_in_branch' test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb:304:in `each' test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb:304:in `test_nodes_in_branch' </pre> git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7640 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: bazaar: use self.class.sq_bin for command name at adpter ↵Toshi MARUYAMA2011-07-151-2/+5
| | | | | | scm_cmd_no_raise() (#8825). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6284 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: bazaar: use self.class.sq_bin for command name at adpter scm_cmd() (#8825).Toshi MARUYAMA2011-07-151-2/+5
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6283 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: bazaar: use "shell_quote_command" method at adapter for JRuby + Windows ↵Toshi MARUYAMA2011-07-151-1/+1
| | | | | | command name (#8825). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6282 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: use self.class.sq_bin for command name at adpter scm_cmd() (#8825).Toshi MARUYAMA2011-07-151-2/+5
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6281 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: use "shell_quote_command" method at adapter for JRuby + Windows ↵Toshi MARUYAMA2011-07-151-1/+1
| | | | | | command name (#8825). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6280 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: use self.class.sq_bin for command name at adpter scm_cmd() ↵Toshi MARUYAMA2011-07-151-2/+5
| | | | | | (#8825). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6279 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: use "shell_quote_command" method at adapter for JRuby + ↵Toshi MARUYAMA2011-07-151-1/+1
| | | | | | Windows command name (#8825). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6278 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: cvs: use self.class.sq_bin for command name at adpter scm_cmd() (#8825).Toshi MARUYAMA2011-07-151-2/+5
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6277 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: cvs: use "shell_quote_command" method at adapter for JRuby + Windows ↵Toshi MARUYAMA2011-07-151-1/+1
| | | | | | command name (#8825). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6276 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: darcs: use "shell_quote_command" method at adapter for JRuby + Windows ↵Toshi MARUYAMA2011-07-151-1/+1
| | | | | | command name (#8825). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6275 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: subversion: use "shell_quote_command" method at adapter for JRuby + ↵Toshi MARUYAMA2011-07-151-1/+1
| | | | | | Windows command name (#8825). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6274 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: add new method "shell_quote_command" at abstract adapter (#8825).Toshi MARUYAMA2011-07-151-0/+8
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6272 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: catch exception and return nil during getting info (#8777).Toshi MARUYAMA2011-07-111-0/+4
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6245 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: catch all exceptions at adapter shellout() to fork scm command (#8510, ↵Toshi MARUYAMA2011-07-101-1/+5
| | | | | | | | | #6713, #4725, #5404). If scm command does not exist, Linux JRuby 1.6.2 (ruby-1.8.7-p330) raises java.io.IOException in production environment. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6230 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: replace RAILS_DEFAULT_LOGGER to Rails.logger at abstract adapter.Toshi MARUYAMA2011-06-221-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6122 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: replace RAILS_ROOT to Rails.root at ↵Toshi MARUYAMA2011-06-171-1/+1
| | | | | | lib/redmine/scm/adapters/abstract_adapter.rb. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6085 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: fix unit adapter annotate test fails on Windows Mercurial ↵Toshi MARUYAMA2011-06-101-1/+2
| | | | | | 1.8.4+29-e597ef52a7c2. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6042 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: add log message of config/configuration.yml if scm command raise ↵Toshi MARUYAMA2011-06-081-2/+3
| | | | | | Errno::ENOENT exception (#7517, #4273). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6007 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: code clean up abstract adapter.Toshi MARUYAMA2011-06-081-2/+9
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6006 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: bazaar: refactor adapter revisions to use scm_cmd().Toshi MARUYAMA2011-05-261-4/+7
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5929 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: bazaar: refactor adapter entries to use scm_cmd().Toshi MARUYAMA2011-05-261-6/+9
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5926 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: bazaar: refactor adapter diff to use scm_cmd_no_raise().Toshi MARUYAMA2011-05-261-3/+4
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5923 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: bazaar: add "scm_cmd_no_raise" method for "bzr diff".Toshi MARUYAMA2011-05-261-0/+8
| | | | | | "bzr diff" normal exit status is not 0 in Bazaar 2.0.5. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5920 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: bazaar: refactor adapter cat to use scm_cmd().Toshi MARUYAMA2011-05-261-5/+6
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5919 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: bazaar: add -q option in "bzr annotate".Toshi MARUYAMA2011-05-261-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5915 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: bazaar: refactor adapter annotate to use scm_cmd().Toshi MARUYAMA2011-05-261-6/+7
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5912 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: bazaar: refactor adapter info() to use scm_cmd().Toshi MARUYAMA2011-05-251-4/+4
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5908 e93f8b46-1217-0410-a6f0-8f06a7374b81