##// END OF EJS Templates
subrepo: parse git status's human-readable output...
Eric Eisner -
r13094:a1dd7bd2 default
parent child Browse files
Show More
@@ -719,10 +719,9 b' class gitsubrepo(object):'
719 if self._state[1] != self._gitstate(): # version checked out changed?
719 if self._state[1] != self._gitstate(): # version checked out changed?
720 return True
720 return True
721 # check for staged changes or modified files; ignore untracked files
721 # check for staged changes or modified files; ignore untracked files
722 # docs say --porcelain flag is future-proof format
722 status = self._gitcommand(['status'])
723 changed = self._gitcommand(['status', '--porcelain',
723 return ('\n# Changed but not updated:' in status or
724 '--untracked-files=no'])
724 '\n# Changes to be committed:' in status)
725 return bool(changed)
726
725
727 def get(self, state):
726 def get(self, state):
728 source, revision, kind = state
727 source, revision, kind = state
General Comments 0
You need to be logged in to leave comments. Login now