subrepo: svnsubrepo._wcrev should return str after 3d6ba8c2b1b8 stable
authorMartin Geisler <mg@lazybytes.net>
Thu, 21 Oct 2010 10:54:37 +0200
branchstable
changeset 12799 8f71e5074e3c
parent 12798 3d6ba8c2b1b8
child 12800 598bf07fc896
subrepo: svnsubrepo._wcrev should return str after 3d6ba8c2b1b8
mercurial/subrepo.py
--- a/mercurial/subrepo.py	Thu Oct 21 03:28:51 2010 -0500
+++ b/mercurial/subrepo.py	Thu Oct 21 10:54:37 2010 +0200
@@ -490,7 +490,7 @@
         doc = xml.dom.minidom.parseString(output)
         entries = doc.getElementsByTagName('entry')
         if not entries:
-            return 0
+            return '0'
         return str(entries[0].getAttribute('revision')) or '0'
 
     def _wcchanged(self):