summaryrefslogtreecommitdiffstats
path: root/lib/redmine/scm/adapters/mercurial/redminehelper.py
Commit message (Collapse)AuthorAgeFilesLines
* Mercurial 4.7 compatibility (#29413).Go MAEDA2018-08-251-2/+4
| | | | | | | Patch by Frédéric Fondement. git-svn-id: http://svn.redmine.org/redmine/trunk@17474 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Mercurial 4.6 compatibility (#28725).Go MAEDA2018-05-281-4/+15
| | | | | | | Patch by Marc Schlaich and Frédéric Fondement. git-svn-id: http://svn.redmine.org/redmine/trunk@17351 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Mercurial 4.1 compatibility (#24999)Toshi MARUYAMA2017-02-051-40/+41
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16329 e93f8b46-1217-0410-a6f0-8f06a7374b81
* use Python getattr instead of hasattr (#16177)Toshi MARUYAMA2014-02-261-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12935 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Mercurial 2.9 compatibility (#16177)Toshi MARUYAMA2014-02-261-2/+7
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12930 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: use long id in adapter level (#14361)Toshi MARUYAMA2014-02-021-5/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12761 e93f8b46-1217-0410-a6f0-8f06a7374b81
* back out r12752 (#14361)Toshi MARUYAMA2014-02-011-5/+5
| | | | | | Revision, Author and Comment of repository browser are broken. git-svn-id: http://svn.redmine.org/redmine/trunk@12753 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: use long id in adapter level (#14361)Toshi MARUYAMA2014-02-011-5/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12752 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: remove comment about Mercurial 0.9.5 compatibility from ↵Toshi MARUYAMA2012-06-021-2/+0
| | | | | | | | redminehelper.py Redmine supports Mercurial 1.2 or higher from r7650. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9749 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: mercurial: wrap revision of cat and annotate with URL encoding (#1981, ↵Toshi MARUYAMA2011-03-141-0/+4
| | | | | | #7246). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5112 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: add new "rhlog()" function in helper extension (#7246, #4455).Toshi MARUYAMA2011-03-131-0/+32
| | | | | | For latest changesets supporting named branch. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5101 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: wrap revison, tag and branch with URL encoding for entries ↵Toshi MARUYAMA2011-03-021-1/+1
| | | | | | (#4455, #1981, #7246). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4989 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: replace urllib.unquote to urllib.unquote_plus in helper (#4455).Toshi MARUYAMA2011-02-231-4/+4
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4934 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: remove unused rhannotate command options in helper.Toshi MARUYAMA2011-02-231-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4933 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: annotate path encoding support in helper (#2664).Toshi MARUYAMA2011-02-231-0/+10
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4930 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: add 'rhcat' function using URL encoding in mercurial helper ↵Toshi MARUYAMA2011-02-211-0/+6
| | | | | | extension (#2664). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4898 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: add Mercurial helper extension (#4455).Toshi MARUYAMA2011-02-151-0/+167
* 'rhsummary' and 'rhmanifest' for reducing the number of hg command calls. * 'rhdiff' for compatibility with Mercurial < 1.1. Also renamed TEMPLATES_DIR to HELPERS_DIR because the directory now contains templates and a helper extension. Original version was written by Alessio Franceschelli, downloaded from http://www.redmine.org/attachments/3395/overhaul.py Contributed by Alessio Franceschelli and Yuya Nishihara. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4833 e93f8b46-1217-0410-a6f0-8f06a7374b81