I changed my script a bit to get all new changes:
#!/usr/bin/env bash
this_basename="${0##*/}"
p4_conf="/etc/profile.d/my_perforce.sh"
repo_dir="/mnt/data/userspace/project"
trac_dir="/mnt/data/trac/project"
source "$p4_conf"
PATH="/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin"
cd "$repo_dir"
last_head="$(git rev-parse HEAD)"
git p4 rebase
while read rev; do
echo "$(date '+%Y%m%d'): Parsed new git rev: $rev" >>
"/tmp/${this_basename}.log"
sudo -u trac trac-admin "$trac_dir" changeset added pmp4 "$rev"
done < <(git rev-list --abbrev-commit "${last_head}"..HEAD)
Still testing. Maybe this is something for the cook-book? At least for any
situation if there is no hook available. For VCS not or poorly supported by
trac I guess using a git clone is always the easy way. As for P4 and git p4
I also read that P4 itself has done some efforts to talk to git which could
be even better supported than git p4. But this is working now like this.
Am Dienstag, 31. März 2015 19:53:40 UTC+2 schrieb RjOllos:
>
> You wish to make the comment bold and green? The comment is wrapped in a
> "div.message", so you can apply some custom CSS to it. One approach to
> implementing customized styling can be found in (a). More examples on the
> CookBook page (b).
>
> (a)
> http://trac.edgewall.org/wiki/TracInterfaceCustomization#SiteAppearance
> (b) http://trac.edgewall.org/wiki/CookBook/SiteStyleCss
>
No, currently it is green and bold by default and I would like to change
that.
I only found how to change header, body and footer there.
Editing the comment I see that CommitTicketUpdater does submit something
like this:
{{{
#!CommitTicketReference repository="project" revision="11fc2c5"
[ticket #13] Translation
* Added new translation
[git-p4: depot-paths = "//PROJECT/": change = 104507]
}}}
So what does the #!CommitTicketReference wiki processor do and how to
customize that?
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.