Changeset 1533
- Timestamp:
- 11/10/06 19:58:01 (2 years ago)
- Files:
-
- publishrevertplugin/publishrevert/__init__.py (modified) (1 diff)
- publishrevertplugin/publishrevert/svnpublish.py (moved) (moved from publishrevertplugin/publishrevert/publish.py) (3 diffs)
- publishrevertplugin/publishrevert/templates/publish.cs (deleted)
- publishrevertplugin/publishrevert/templates/setchangeset.cs (modified) (1 diff)
- publishrevertplugin/publishrevert/templates/svnpublish.cs (added)
- publishrevertplugin/setup.py (modified) (1 diff)
- publishrevertplugin/TracPublishRevert.egg-info (added)
- publishrevertplugin/TracPublishRevert.egg-info/entry_points.txt (added)
- publishrevertplugin/TracPublishRevert.egg-info/PKG-INFO (added)
- publishrevertplugin/TracPublishRevert.egg-info/SOURCES.txt (added)
- publishrevertplugin/TracPublishRevert.egg-info/top_level.txt (added)
- publishrevertplugin/TracSetChangeset.egg-info (deleted)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
publishrevertplugin/publishrevert/__init__.py
r1531 r1533 1 1 # PublishRevert module 2 2 from publishrevert import * 3 from setchangeset import * 4 from svnpublish import * publishrevertplugin/publishrevert/svnpublish.py
r1530 r1533 36 36 from trac.util import escape, Markup 37 37 38 class PublishModule(Component):38 class SVNPublishModule(Component): 39 39 40 40 implements(INavigationContributor, IPermissionRequestor, IRequestHandler, … … 57 57 58 58 def match_request(self, req): 59 match = re.match(r'/ publish/([0-9]+)$', req.path_info)59 match = re.match(r'/svnpublish/([0-9]+)$', req.path_info) 60 60 if match: 61 61 req.args['ticket_id'] = match.group(1) … … 73 73 diff_options = get_diff_options(req) 74 74 if req.args.has_key('update'): 75 req.redirect(self.env.href. publish(ticket_id))75 req.redirect(self.env.href.svnpublish(ticket_id)) 76 76 77 77 ticket = Ticket(self.env, ticket_id) publishrevertplugin/publishrevert/templates/setchangeset.cs
r1527 r1533 5 5 <h1>Ticket <a href="../ticket/<?cs var:ticket_id ?>"><?cs var:ticket_id ?></a></h1> 6 6 7 <a href="../ publish/<?cs var:ticket_id ?>">PUBLISH TO PRODUCTION</a><br/>8 <a href="../ revert/<?cs var:ticket_id ?>">REVERT PRODUCTION</a>7 <a href="../svnpublish/<?cs var:ticket_id ?>">PUBLISH TO PRODUCTION</a><br/> 8 <a href="../svnrevert/<?cs var:ticket_id ?>">REVERT PRODUCTION</a> 9 9 10 10 publishrevertplugin/setup.py
r1528 r1533 7 7 version=VERSION, 8 8 packages=['publishrevert'], 9 package_data={'publishrevert' : [' publishrevert/setchangeset/templates/*.cs','publishrevert/svnpublish/templates/*.cs']},9 package_data={'publishrevert' : ['templates/*.cs']}, 10 10 entry_points={'trac.plugins': '%s = publishrevert' % PACKAGE}, 11 11 )
