svn commit: r324874 - in head/www/trac-TracDuplicates: . files

Raphael Kubo da Costa rakuco at FreeBSD.org
Sat Aug 17 22:22:24 UTC 2013


Author: rakuco
Date: Sat Aug 17 22:22:23 2013
New Revision: 324874
URL: http://svnweb.freebsd.org/changeset/ports/324874

Log:
  Add patch for Trac 1.0 compatibility.
  
  PR:		ports/181303
  Submitted by:	Hung-Yi Chen <gaod at hychen.org>
  Approved by:	Gea-Suan Lin <gslin at gslin.org> (maintainer)

Added:
  head/www/trac-TracDuplicates/files/
  head/www/trac-TracDuplicates/files/patch-tracduplicates_web_ui.py   (contents, props changed)
Modified:
  head/www/trac-TracDuplicates/Makefile

Modified: head/www/trac-TracDuplicates/Makefile
==============================================================================
--- head/www/trac-TracDuplicates/Makefile	Sat Aug 17 22:16:57 2013	(r324873)
+++ head/www/trac-TracDuplicates/Makefile	Sat Aug 17 22:22:23 2013	(r324874)
@@ -3,6 +3,7 @@
 
 PORTNAME=	TracDuplicates
 PORTVERSION=	0.11
+PORTREVISION=	1
 CATEGORIES=	www python
 MASTER_SITES=	GH
 PKGNAMEPREFIX=	trac-

Added: head/www/trac-TracDuplicates/files/patch-tracduplicates_web_ui.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/trac-TracDuplicates/files/patch-tracduplicates_web_ui.py	Sat Aug 17 22:22:23 2013	(r324874)
@@ -0,0 +1,20 @@
+--- tracduplicates/web_ui.py.orig	2010-09-26 10:42:18.000000000 +0800
++++ tracduplicates/web_ui.py	2013-08-15 01:23:26.793491000 +0800
+@@ -12,7 +12,7 @@
+     ticket._proxy_old_save = ticket.save_changes
+     ticket.save_changes = self.save_changes
+   
+-  def save_changes(self, author, comment, when=0, db=None, cnum=''):
++  def save_changes(self, author, comment, when=0, db=None, cnum='', replyto=None):
+     dupeticket = Ticket(self._ticket.env, self._dupe_id, db=db)
+     dupeticket.save_changes(
+       author,
+@@ -25,7 +25,7 @@
+     else:
+       comment += "\n\n"
+     comment += "*** Marked duplicate of #%d ***" % self._dupe_id
+-    return self._ticket._proxy_old_save(author, comment, when=when, db=db, cnum=cnum)
++    return self._ticket._proxy_old_save(author, comment, when=when, db=db, cnum=cnum, replyto=replyto)
+ 
+ class DuplicatesWorkflow(Component):
+   implements(ITicketActionController)


More information about the svn-ports-all mailing list