Yes, this patch is a fix! Thank you!

ср, 9 февр. 2022 г. в 01:39, Jun Omae <jun6...@gmail.com>:

> Hi,
>
> On 2022/02/08 15:53, Alexander Lunev wrote:
> > Oh, sorry, Trac version is 1.5.3. Syntax coloring works in source code
> (SVN) only when svn:mime-type set. In Wiki coloring works when set wiki
> processor, like
> > {{{
> > #!php
> > <?php
> > if (true) {
> > }
> > ?>
> > }}}
>
> Thanks. Reproduced with Subversion repository on my environment.
> Could you please try the following patch?
>
> [[[
> diff --git a/tracopt/versioncontrol/svn/svn_fs.py
> b/tracopt/versioncontrol/svn/svn_fs.py
> index b5fd52854..bac8fa157 100644
> --- a/tracopt/versioncontrol/svn/svn_fs.py
> +++ b/tracopt/versioncontrol/svn/svn_fs.py
> @@ -827,7 +827,7 @@ class SubversionNode(Node):
>       def _get_prop(self, name):
>           value = fs.node_prop(self.root, self._scoped_path_utf8, name,
>                                self.pool)
> -        return to_unicode(value)
> +        return _from_svn(value)
>
>       def get_branch_origin(self):
>           """Return the revision in which the node's path was created.
> ]]]
>
> --
> Jun Omae <jun6...@gmail.com> (大前 潤)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Trac Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to trac-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/trac-users/498ae396-733e-442c-d9c3-8359ae7212d7%40gmail.com
> .
>


-- 
your sweet isn't ready yet

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/CABk4_A7%2BmOr9rR38N6kbpjFm-QtuYhPwL3uU5%3DY575zqmKrhuQ%40mail.gmail.com.

Reply via email to