Häufig verwendete Methoden
Häufig verwendete Methoden
Häufig verwendete Methoden
Häufig verwendete Methoden
def test_add_archive_content_absolute_path(path): repo = AnnexRepo(opj(path, "ds"), create=True) repo.add(["1.tar.gz"]) repo.commit("1.tar.gz") abs_tar_gz = opj(path, "ds", "1.tar.gz") add_archive_content(abs_tar_gz, annex=repo) ok_file_under_git(opj(path, "ds", "1", "foo"), annexed=True) commit_msg = repo.format_commit("%B") # The commit message uses relative paths. assert_not_in(abs_tar_gz, commit_msg) assert_in("1.tar.gz", commit_msg) with assert_raises(FileNotInRepositoryError): add_archive_content(opj(path, "notds", "2.tar.gz"), annex=repo)