Mercurial > public > mercurial-scm > hg
comparison mercurial/context.py @ 43787:be8552f25cab
cleanup: fix docstring formatting
This is just removing the b'' prefix (except demandimportpy2), and making sure
it is triple quoted. I skipped the mapping.py module in zope because that's 3rd
party code.
Differential Revision: https://phab.mercurial-scm.org/D7539
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sun, 01 Dec 2019 18:46:10 -0500 |
parents | f3b23d5c15fd |
children | bbcf78c4ff90 |
comparison
equal
deleted
inserted
replaced
43786:421ea5772039 | 43787:be8552f25cab |
---|---|
1585 return workingfilectx( | 1585 return workingfilectx( |
1586 self._repo, path, workingctx=self, filelog=filelog | 1586 self._repo, path, workingctx=self, filelog=filelog |
1587 ) | 1587 ) |
1588 | 1588 |
1589 def dirty(self, missing=False, merge=True, branch=True): | 1589 def dirty(self, missing=False, merge=True, branch=True): |
1590 b"check whether a working directory is modified" | 1590 """check whether a working directory is modified""" |
1591 # check subrepos first | 1591 # check subrepos first |
1592 for s in sorted(self.substate): | 1592 for s in sorted(self.substate): |
1593 if self.sub(s).dirty(missing=missing): | 1593 if self.sub(s).dirty(missing=missing): |
1594 return True | 1594 return True |
1595 # check current working dir | 1595 # check current working dir |