subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gst...@apache.org
Subject svn commit: r1297843 - /subversion/trunk/tools/server-side/svnpubsub/svnpubsub/client.py
Date Wed, 07 Mar 2012 02:53:15 GMT
Author: gstein
Date: Wed Mar  7 02:53:15 2012
New Revision: 1297843

URL: http://svn.apache.org/viewvc?rev=1297843&view=rev
Log:
The revision should be an integer (rather than unicode).

* tools/server-side/svnpubsub/client.py:
  (XMLStreamHandler.startElement): convert the revnum to an int

Modified:
    subversion/trunk/tools/server-side/svnpubsub/svnpubsub/client.py

Modified: subversion/trunk/tools/server-side/svnpubsub/svnpubsub/client.py
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/server-side/svnpubsub/svnpubsub/client.py?rev=1297843&r1=1297842&r2=1297843&view=diff
==============================================================================
--- subversion/trunk/tools/server-side/svnpubsub/svnpubsub/client.py (original)
+++ subversion/trunk/tools/server-side/svnpubsub/svnpubsub/client.py Wed Mar  7 02:53:15 2012
@@ -117,7 +117,7 @@ class XMLStreamHandler(xml.sax.handler.C
 
   def startElement(self, name, attrs):
     if name == 'commit':
-      self.rev = Revision(attrs['repository'], attrs['revision'])
+      self.rev = Revision(attrs['repository'], int(attrs['revision']))
     # No other elements to worry about.
 
   def characters(self, data):



Mime
View raw message