Example #1
0
    def changed_files(self, *, scm: Scm) -> List[str]:
        """Determines the files changed according to SCM/workspace and options."""
        workspace = ScmWorkspace(scm)
        if self.diffspec:
            return cast(List[str], workspace.changes_in(self.diffspec))

        changes_since = self.changes_since or scm.current_rev_identifier
        return cast(List[str], workspace.touched_files(changes_since))
    def changed_files(cls, scm, changes_since=None, diffspec=None):
        """Determines the files changed according to SCM/workspace and options."""
        workspace = ScmWorkspace(scm)
        if diffspec:
            return workspace.changes_in(diffspec)

        changes_since = changes_since or scm.current_rev_identifier()
        return workspace.touched_files(changes_since)
  def changed_files(cls, scm, changes_since=None, diffspec=None):
    """Determines the files changed according to SCM/workspace and options."""
    workspace = ScmWorkspace(scm)
    if diffspec:
      return workspace.changes_in(diffspec)

    changes_since = changes_since or scm.current_rev_identifier()
    return workspace.touched_files(changes_since)