def workdir_is_clean(self, quiet=False):
<EOL>self.run('<STR_LIT>', **RUN_KWARGS)<EOL>unchanged = True<EOL>try:<EOL><INDENT>self.run('<STR_LIT>', report_error=False, **RUN_KWARGS)<EOL><DEDENT>except exceptions.Failure:<EOL><INDENT>unchanged = False<EOL>if not quiet:<EOL><INDENT>notify.warning('<STR_LIT>')<EOL>self.run('<STR_LIT>', **RUN_KWARGS)<EOL><DEDENT><DEDENT>try:<EOL><INDENT>self.run('<STR_LIT>', report_error=False, **RUN_KWARGS)<EOL><DEDENT>except exceptions.Failure:<EOL><INDENT>unchanged = False<EOL>if not quiet:<EOL><INDENT>notify.warning('<STR_LIT>')<EOL>self.run('<STR_LIT>', **RUN_KWARGS)<EOL><DEDENT><DEDENT>return unchanged<EOL>
Check for uncommitted changes, return `True` if everything is clean.

            Inspired by http://stackoverflow.com/questions/3878624/.