comparison mercurial/subrepo.py @ 35661:1c0ee0befba0

svnsubrepo: add new method _svnmissing This is modelled after _gitmissing from dea6efdd7ec4 and also necessary for svn. I'm not sure exactly how this hasn't been more of a problem for svn until now, actually.
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Sun, 14 Jan 2018 12:07:06 -0500
parents 73f51bdb0fea
children 9c575c22dcf4
comparison
equal deleted inserted replaced
35660:73f51bdb0fea 35661:1c0ee0befba0
1278 m = re.search(br'^(\d+)\.(\d+)', output) 1278 m = re.search(br'^(\d+)\.(\d+)', output)
1279 if not m: 1279 if not m:
1280 raise error.Abort(_('cannot retrieve svn tool version')) 1280 raise error.Abort(_('cannot retrieve svn tool version'))
1281 return (int(m.group(1)), int(m.group(2))) 1281 return (int(m.group(1)), int(m.group(2)))
1282 1282
1283 def _svnmissing(self):
1284 return not self.wvfs.exists('.svn')
1285
1283 def _wcrevs(self): 1286 def _wcrevs(self):
1284 # Get the working directory revision as well as the last 1287 # Get the working directory revision as well as the last
1285 # commit revision so we can compare the subrepo state with 1288 # commit revision so we can compare the subrepo state with
1286 # both. We used to store the working directory one. 1289 # both. We used to store the working directory one.
1287 output, err = self._svncommand(['info', '--xml']) 1290 output, err = self._svncommand(['info', '--xml'])