mercurial/subrepo.py
branchstable
changeset 12798 3d6ba8c2b1b8
parent 12770 614f0d8724ab
child 12799 8f71e5074e3c
equal deleted inserted replaced
12797:076bbbf0ba86 12798:3d6ba8c2b1b8
   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 int(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
   499         True if any of these changes concern an external entry.
   499         True if any of these changes concern an external entry.