createTFSRepository: Setup a git repository in an existing TFS (Git) Project

Description Usage Arguments Value Examples

Description

This produces a repository and returns the URL that can be used for pushing/pulling

Usage

1
2
createTFSRepository(URL, Credentials, ParentProject, NewRepo, ...,
  URLSub = "DefaultCollection")

Arguments

URL

URL for root TFS e.g. http://stephlocke.visualstudio.com

Credentials

TFSAuth object

ParentProject

Name of parent project to store repository in

NewRepo

Name for new repository

...

Additional arguments to httr::POST

URLSub

Modify this if you need to reference somewhere other than DefaultCollection

Value

RepoURL String containing location of repository

Examples

1
2
3
4
5
6
7
tfs        <- "https://stephlocke.visualstudio.com"
authcreds  <- TFSAuth(pwd="fz43enydh7vi2o6jqir2gmftohh7ooz2lizqvy6jxtw4ltrpwola")
parentproj <- "tfsr3"
newrepo    <- as.character(random::randomStrings(n=1, len=6))

createdrepo  <- createTFSRepository(tfs,authcreds,parentproj,newrepo)
deleted<-deleteTFSRepository(tfs,authcreds,newrepo)

stephlocke/tfsR documentation built on May 30, 2019, 4:41 p.m.