# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/.
import os
import mozunit
from mozversioncontrol import get_repository_object
assert_files(vcs.get_changed_files("A", "all"), ["baz"])
assert_files(vcs.get_changed_files("AM", "all"), ["bar", "baz"])
assert_files(vcs.get_changed_files("D", "all"), ["foo"]) if repo.vcs == "git":
assert_files(vcs.get_changed_files("AM", mode="staged"), ["baz"]) else: # Mercurial and jj do not use a staging area (and ignore the mode # parameter.)
assert_files(vcs.get_changed_files("AM", "unstaged"), ["bar", "baz"]) if repo.vcs != "jj": # Everything is already committed in jj, and therefore outgoing.
assert_files(vcs.get_outgoing_files("AMD"), [])
assert_files(vcs.get_outgoing_files("AMD", remote_path), [])
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.