[DRE-maint] Bug#644964: redmine: Redmine's mercurial support is broken in squeeze
Package: redmine Version: 1.0.1-2 On Mon, Dec 12, 2011 at 04:33:20AM +0100, Stefan Sperling wrote: On Tue, Oct 11, 2011 at 07:53:13PM +1100, Paul Dwerryhouse wrote: Package: redmine Version: 1.0.1-2 Severity: normal When using the mercurial as a repository for a redmine project in squeeze, the repository browser doesn't show the size / revision / age / author for any of the files (instead, it just shows '?') and it does not show a list of latest revisions at the bottom of the screen. In Apache's error log (using fcgid) the following error appears: abort: not under root abort: not under root The problem is a bug in the Mercurial adapter shipped in this redmine version. It issues a bad hg command which looks like this: $ hg --debug --encoding utf8 -R '/path/to/repos' log -C --style '/usr/share/redmine/lib/redmine/scm/adapters/mercurial/hg-template-1.0.tmpl' -r 0:0 '' abort: not under root The abort comes from Mercurial in the function scmutil.canonpath(). Apparently it doesn't like an empty path in argv. This patch fixes it for me: --- lib/redmine/scm/adapters/mercurial_adapter.rb.origMon Dec 12 04:27:47 2011 +++ lib/redmine/scm/adapters/mercurial_adapter.rb Mon Dec 12 04:28:57 2011 @@ -112,7 +112,7 @@ cmd -r #{identifier_from.to_i}: end cmd --limit #{options[:limit].to_i} if options[:limit] - cmd #{shell_quote path} if path + cmd #{shell_quote path} if (path path.length 0) shellout(cmd) do |io| begin # HG doesn't close the XML Document... I forgot to mention that the issue with size being '?' is fixed by running 'hg checkout' in the Mercurial repository accessed by redmine. ___ Pkg-ruby-extras-maintainers mailing list Pkg-ruby-extras-maintainers@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers
[DRE-maint] Bug#644964: redmine: Redmine's mercurial support is broken in squeeze
Package: redmine Version: 1.0.1-2 Severity: normal When using the mercurial as a repository for a redmine project in squeeze, the repository browser doesn't show the size / revision / age / author for any of the files (instead, it just shows '?') and it does not show a list of latest revisions at the bottom of the screen. In Apache's error log (using fcgid) the following error appears: abort: not under root abort: not under root I have identically configured redmine instances on both squeeze and wheezy, and the version in wheezy is not having this problem, although it still fails to show the size of the files. (I also have another system configured using the redmine package from Ubuntu lucid, which appears to be built from the Debian package, and it does not have any of these problems). -- System Information: Debian Release: 6.0.3 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core) Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages redmine depends on: ii dbconfig-common 1.8.46+squeeze.0common framework for packaging dat ii debconf [debconf-2.0 1.5.36.1Debian configuration management sy ii libactionmailer-ruby 2.3.5-1.2+squeeze1 Framework for generation of custom ii libactionpack-ruby 2.3.5-1.2+squeeze1 Controller and View framework used ii libactiveresource-ru 2.3.5-1.2+squeeze1 Connects objects and REST web serv ii libactivesupport-rub 2.3.5-1.2+squeeze1 utility classes and extensions (Ru ii libjs-scriptaculous 1.8.3-1 JavaScript library for dynamic web ii rails2.3.5-1.2+squeeze1 MVC ruby based framework geared fo ii redmine-mysql1.0.1-2 metapackage providing MySQL depend ii redmine-sqlite 1.0.1-2 metapackage providing sqlite depen ii ruby 4.5 An interpreter of object-oriented ii ruby1.8 1.8.7.302-2squeeze1 Interpreter of object-oriented scr redmine recommends no packages. Versions of packages redmine suggests: pn libopenid-rubynone (no description available) pn librmagick-ruby none (no description available) pn libsvn-ruby none (no description available) -- debconf information excluded ___ Pkg-ruby-extras-maintainers mailing list Pkg-ruby-extras-maintainers@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers