comparison mercurial/subrepo.py @ 12799:8f71e5074e3c stable

subrepo: svnsubrepo._wcrev should return str after 3d6ba8c2b1b8
author Martin Geisler <mg@lazybytes.net>
date Thu, 21 Oct 2010 10:54:37 +0200
parents 3d6ba8c2b1b8
children 5dbff89cf107
comparison
equal deleted inserted replaced
12798:3d6ba8c2b1b8 12799:8f71e5074e3c
488 def _wcrev(self): 488 def _wcrev(self):
489 output = self._svncommand(['info', '--xml']) 489 output = self._svncommand(['info', '--xml'])
490 doc = xml.dom.minidom.parseString(output) 490 doc = xml.dom.minidom.parseString(output)
491 entries = doc.getElementsByTagName('entry') 491 entries = doc.getElementsByTagName('entry')
492 if not entries: 492 if not entries:
493 return 0 493 return '0'
494 return str(entries[0].getAttribute('revision')) or '0' 494 return str(entries[0].getAttribute('revision')) or '0'
495 495
496 def _wcchanged(self): 496 def _wcchanged(self):
497 """Return (changes, extchanges) where changes is True 497 """Return (changes, extchanges) where changes is True
498 if the working directory was changed, and extchanges is 498 if the working directory was changed, and extchanges is