trac

Detecting infinite recursion

江枫思渺然 提交于 2019-12-24 06:28:14
问题 I'm creating a macro for Trac, and one of the things it does is to render a bit of wiki text, that can in turn use the same macro. This can give rise to an infinite recursion if the inner macro is invoked with the same arguments (i.e., renders the same bit of wiki text). I thought of trying to stop the user from shooting his own foot like this by inspecting the call stack and breaking the recursion if the function that expands the macro was already invoked with exactly the same set of

git hook for legit commit message (#123 good message)

北战南征 提交于 2019-12-22 07:02:10
问题 I need to make sure commit messages are some what legit else reject it. The commit message should be like "#123 fixing missing bracket" I want to make sure it begins with hash, there is an integer (no 123a), and the message is at least 10 words. Nice to have: the message would not be the exact same in a row I am using this Trac plugin for change set, it describes the commit message format in more detail http://trac-hacks.org/wiki/TracTicketChangelogPlugin Thanks, 回答1: You can create a pre

Is there a simple Bugzilla/Trac client for use by non software folks?

喜欢而已 提交于 2019-12-21 17:49:13
问题 I'm aware this isn't exactly a programming question, but it directly impacts our developers and the code we're assigned to write. If there's another SO-like forum where this could be better posted, please let me know and I'll take the question down from here & post it there. Our work environment is a couple of developers creating (20-30%) and maintaining (lion's share) legacy software for factory production floor and test workers to use to calibrate or test the equipment the company sells. We

delete all trac pages at once

こ雲淡風輕ζ 提交于 2019-12-21 06:25:45
问题 is there a way to clean, delete all the wiki pages so i can have a clean index, with only the pages i have created ? 回答1: You can hack around trac-admin like this: #!/bin/sh # extract the page list from trac (this filter matches only CamelCase words or numbers, # it will blow if there are pages which does not fit into this scheme) for site in `trac-admin /path/to/trac wiki list | sed -e 's/\([a-zA-Z0-9]*\).*/\1/'` do # and remove every single page trac-admin /path/to/trac wiki remove $site

web based subversion viewer [closed]

陌路散爱 提交于 2019-12-20 09:53:56
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . Is there a tool that allows me to point to a subversion repository to browse the contents of the repository. I am thinking something

trac-admin /path/to/myproject initenv

无人久伴 提交于 2019-12-20 06:19:01
问题 I have a problem with Trac. I cant create a new project. Here, in the /path/to/myproject - what should I write instead of it? In fact, my project path is: C:\Users\Programmer\BitNami Trac Stack projects Everytime it outputs error in BitNami Trac Stack command line. Why cant I create a new project? It is writing: The system cannot find the path specified Thanks! 回答1: try this: cd C:\Users\Programmer\BitNami trac-admin . initenv 回答2: You could save yourself a lot of hassle by avoiding blanks

How to update a file in python egg

雨燕双飞 提交于 2019-12-19 19:42:13
问题 We are using trac. In our setup we have a problem that is solved in repository. So I got the fixed file commit_update.py from the repository and I need to place it into Trac-0.12-py2.6.egg. As egg is just a ziped filed I just unziped it, changed the file and ziped again. After restarting trac, I've got a an error message: ExtractionError: Can't extract file(s) to egg cache The following error occurred while trying to extract file(s) to the Python egg cache: [Errno 20] Not a directory The

How to update a file in python egg

自闭症网瘾萝莉.ら 提交于 2019-12-19 19:41:33
问题 We are using trac. In our setup we have a problem that is solved in repository. So I got the fixed file commit_update.py from the repository and I need to place it into Trac-0.12-py2.6.egg. As egg is just a ziped filed I just unziped it, changed the file and ziped again. After restarting trac, I've got a an error message: ExtractionError: Can't extract file(s) to egg cache The following error occurred while trying to extract file(s) to the Python egg cache: [Errno 20] Not a directory The

How to set up Java to use user specific certificates for Eclipse?

六眼飞鱼酱① 提交于 2019-12-18 12:28:25
问题 I can't believe I'm the only person to run up against this problem. I've been googling for hours and have not had any luck. The Java security documentation doesn't seem to address PKCS12 certificates thoroughly. I am trying to setup Java for user specific PKCS12 certificates. Among other things, this will be used so that, in Eclipse, I can access a Trac server that is authenticated via certificates. I am using the Trac Mylyn integration plugin for eclipse. Here is the setup: user home

Create Trac ticket from Google Form GAS script?

风格不统一 提交于 2019-12-14 03:56:36
问题 This is a followup question to my original question here. The decision between Bugzilla & Trac seems to have been made for us, and Trac it is. Here are the options I've found so far: Leverage our current Google Form based bug report by modifying the GAS script that is doing our email notification. So far I've been unable to find an example, but it would appear that you can modify the email portion of the GAS script to send email to the Trac server to open a ticket automatically. This is my