Mercurial > hgsubversion
changeset 778:184d25bc1c0b
svnexternals: add ignoreupdate param to svnsubrepo.dirty()
This change was brought by Mercurial in be7e8e9bc5e5
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Fri, 07 Jan 2011 19:21:02 +0100 |
parents | 60948939555d |
children | 13e24740a500 |
files | hgsubversion/svnexternals.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgsubversion/svnexternals.py +++ b/hgsubversion/svnexternals.py @@ -405,12 +405,12 @@ if subrepo: source = source + '@' + pegrev return super(svnsubrepo, self).get((source, state[1])) - def dirty(self): + def dirty(self, ignoreupdate=False): # You cannot compare anything with HEAD. Just accept it # can be anything. wcrev = self._wcrev() if (wcrev == 'HEAD' or self._state[1] == 'HEAD' or - wcrev == self._state[1]) and not self._wcchanged()[0]: + wcrev == self._state[1] or ignoreupdate) and not self._wcchanged()[0]: return False return True