mercurial/subrepo.py
branchstable
changeset 12799 8f71e5074e3c
parent 12798 3d6ba8c2b1b8
child 12852 5dbff89cf107
--- 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):