You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by gs...@apache.org on 2012/03/07 03:53:15 UTC

svn commit: r1297843 - /subversion/trunk/tools/server-side/svnpubsub/svnpubsub/client.py

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):