Mercurial > public > mercurial-scm > hg-stable
diff 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 |
line wrap: on
line diff
--- a/mercurial/subrepo.py Sun Jan 14 12:05:28 2018 -0500 +++ b/mercurial/subrepo.py Sun Jan 14 12:07:06 2018 -0500 @@ -1280,6 +1280,9 @@ raise error.Abort(_('cannot retrieve svn tool version')) return (int(m.group(1)), int(m.group(2))) + def _svnmissing(self): + return not self.wvfs.exists('.svn') + def _wcrevs(self): # Get the working directory revision as well as the last # commit revision so we can compare the subrepo state with