Changeset 1857
- Timestamp:
- 01/10/07 11:52:11 (2 years ago)
- Files:
-
- publishrevertplugin/publishrevert/setchangeset.py (modified) (3 diffs)
- publishrevertplugin/publishrevert/setchangeset.pyc (modified) (previous)
- publishrevertplugin/publishrevert/svnpublish.py (modified) (1 diff)
- publishrevertplugin/publishrevert/svnpublish.pyc (modified) (previous)
- publishrevertplugin/publishrevert/templates/setchangeset.cs (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
publishrevertplugin/publishrevert/setchangeset.py
r1713 r1857 95 95 setchangesets = ticket.setchangesets 96 96 req.hdf['ticket'] = ticket 97 req.hdf['dbWarning'] = False 97 98 98 99 # get the list of changesets for the ticket_id … … 108 109 109 110 self._render_html(req, ticket, repos, chgset, diff_options) 111 110 112 return 'setchangeset.cs', None 111 113 … … 204 206 205 207 if self.use_file(info, filepaths): 206 req.hdf['setchangeset.changes.%d' % idx] = info207 208 filepaths.append(info) 208 idx += 1209 209 210 210 hidden_properties = [p.strip() for p 211 211 in self.config.get('browser', 'hide_properties').split(',')] 212 213 212 213 filepaths.reverse() 214 for info in filepaths: 215 req.hdf['setchangeset.changes.%d' % idx] = info 216 if(info['path.new'] == 'trunk/db/database_modifications.sql'): 217 req.hdf['dbWarning'] = "True" 218 idx += 1 219 214 220 def use_file(self, newchange, filepaths): 215 221 for path in filepaths: publishrevertplugin/publishrevert/svnpublish.py
r1715 r1857 215 215 self.svn_init() 216 216 req.hdf['svn_commands'] = '' 217 filepaths.reverse() 217 218 for info in filepaths: 218 219 info['prod_rev'] = self.svn_rev_num(info['path.new']) publishrevertplugin/publishrevert/templates/setchangeset.cs
r1715 r1857 9 9 <?cs if:ticket['ticketaction'] == 'TestFailed' ?> 10 10 <a href="../svnrevert/<?cs var:ticket_id ?>">REVERT CLONE</a> 11 <?cs /if ?> 12 13 <?cs if:dbWarning == "True" ?> 14 <h1 style="text-align: center;">WARNING:<br/>There have been database modifications.<br/>Don't forget to backup the database and apply the new changes when publishing.</h1> 11 15 <?cs /if ?> 12 16 … … 54 58 <dd class="files"> 55 59 <ul><?cs each:item = setchangeset.changes ?> 56 <li> <?cs var:item.path.new ?> <?cs var:item.rev.new ?>60 <li>svn update -r <?cs var:item.rev.new ?> <a href="/trac/log/<?cs var:item.path.new ?>" target="_new"><?cs var:item.path.new ?></a> 57 61 </li> 58 62 <?cs /each ?></ul> 63 </dd> 64 <dt class="files">Files:</dt> 65 <dd class="files"> 66 <?cs each:item = setchangeset.changes ?> 67 svn update -r <?cs var:item.rev.new ?> <?cs var:item.path.new ?>; 68 <?cs /each ?> 59 69 </dd> 60 70 <dt>Subversion Commands:</dt> … … 64 74 <?cs /each ?></ul> 65 75 </dd> 76 <dt class="files">Files:</dt> 77 <dd class="files">svn info 78 <?cs each:item = setchangeset.changes ?> 79 <?cs var:item.path.new ?> 80 <?cs /each ?> 81 </dd> 82 66 83 </dl> 67 84
