tfs - Team Explorer Everywhere: What is the best way to retrieve a single file? -


i apologize being newb microsoft products, have need support tfs integration existing tool. have looked around , figured team explorer everywhere way go since cross platform , seems user-friendly enough wrap in python , expose subset of functionality.

what need quite simple , believe problems stem lack of understanding on part. need retrieve single zip file tfs, deploy file application server, create second zip file containing logs , other deployment artifacts, add second zip team project , check in tfs.

all code deployment written , including creating second zip file, cannot figure out simple checkout/checkin procedure.

this course have tried:

c:\> mkdir collection c:\> cd collection c:\collection> tf workspace /new /comment:temp /collection:http://www.tfs.server.com:8080/tfs/testcollection /location:local tempworkspace c:\collection> tf workfold /map /collection:http://www.tfs.server.com:8080/tfs/testcollection $/serverfolder . c:\collection> tf 

now here reason folder empty. know there files in folder , in collection, there might simple reason why folder empty, @ point in troubleshooting figured there must simpler way retrieve 1 file (maybe not), figured should ask because seems lot compared to:

$ git clone https://url/for/repo 

anyway thank looking @ question, guidance appreciated.

ok, appears typos along misunderstandings cause of dilemma. answering own question because feel though might come across problem in future.

my biggest mistake (which coupled believe bug) typo in server-path required of following commands. mistyped server-path in "tf workfold -map" command succeeded , when subsequent "tf get" command issued received "very helpful" output indicating "all files date".

here list of common tasks need performed task set such mine, useful cheat sheet learning work tfs:

create workspace , files

mkdir $temp_dir$ tf workspace -new $temp_workspace$ -collection:$server_url$/$collection_name$ tf workfold -map $server_path$ -workspace:$temp_workspace$ $temp_dir$ cd $temp_dir$ tf 

where:

$temp_workspace$  = string (should configurable) $server_url$      = url of tfs server (usually ends "/tfs" , default on port 8080) $collection_name$ = name of collection (i.e. defaultcollection) $temp_dir$        = valid directory (relative paths not allowed) $server_path$     = path team project 

add file repo , checkin

note: must in directory mapped using above workfold command

tf add $filename$ 

where:

$filename$ = name of file add (must exist!) 

check-in changes

note: must in directory mapped using above workfold command

tf checkin -comment:$comment$ 

where:

$comment$  = comment associate changeset 

get status of workspace

note: must in directory mapped using above workfold command

tf status 

unmap local directory

tf workfold -unmap -collection:$server_url$/$collection_name$ -workspace:$temp_workspace$ $temp_dir$ 

where:

$temp_workspace$  = string (should configurable) $server_url$      = url of tfs server (usually ends "/tfs" , default on port 8080) $collection_name$ = name of collection (i.e. defaultcollection) $temp_dir$        = valid directory (relative paths not allowed) 

delete workspace

tf workspace -delete -collection:$server_url$/$collection_name$ $temp_workspace$ 

where:

$temp_workspace$  = string (should configurable) $server_url$      = url of tfs server (usually ends "/tfs" , default on port 8080) $collection_name$ = name of collection (i.e. defaultcollection) 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -