Your message dated Wed, 04 Sep 2019 17:46:45 +0900
with message-id <be9293992dd6be838d945db416538...@duckcorp.org>
and subject line Re: redmine: Redmine's mercurial support is broken in squeeze
has caused the Debian Bug report #644964,
regarding redmine: Redmine's mercurial support is broken in squeeze
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
644964: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=644964
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
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.orig        Mon 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.



--- End Message ---
--- Begin Message ---
Quack,

The mercurial adapter changed a lot since then and from what I can see in the new code this cannot happen anymore now.
I'm thus closing this bug, thanks for the report.

\_o<

--
Marc Dequènes

--- End Message ---
_______________________________________________
Pkg-ruby-extras-maintainers mailing list
Pkg-ruby-extras-maintainers@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers

Reply via email to