index > Team Foundation Server - Version Control > Check-in from different directory

Check-in from different directory


Is there any way I can check in a file from a different directory from the one it was checked out, e.g. check-out dir = c:\project, check-in dir d:\equipment? In VSS there was a edit box that allowed the directory to be overridden.

Thanks,

Jeff

Rocinante8

Hi Jeff,

The quick answer is No. Th reason you could do it in VSS was because VSS only mapped from server folder to local folder. It had no other "intelligence" baked into it. In TFS, the Workspace holds mappings between the TFS repository and the local cache. TFS wants to own the local cache and assumes that you will let it. By "owns" I mean that when you check out or get a file, the Workspace holds information about which file version are now in your workspace and that you have pending changes against them.

The only way to get your D:\Equipment files into the check-in process is to copy them to the C:\Project folder. If you modify the mappings in TFS from C:\Projects to D:\Equipment, TFS will move the files from C: to D: for you on the next Get Latest.

I'm sure that wasn't the answer you were looking for, but it is what it is. I'm wondering wy you would want to do this? If you can give a little background, maybe we can suggest alternatives.

- Steve




http://sstjean.blogspot.com
Steve St.Jean

Hello Steve,

Thanks for the explanation. My current case is exceptional, my d drive failed but I had a backup of the latest changes on drive c. I can use a network share mapped to d: to recover but I thought there should be a better way.

Previously using SourceSafe I often used this feature. We have machines in the clean room where I would check-out and make changes and then later check-in from my desk machine after fully tested in the office. I guess I could copy the files back in and use remote desktop to check-in but I have an aversion to copying files onto equipment computers unless I am physically present to verify there are no obvious problems.

It seems like allowing an explicit override of a file's check-in directory wouldn't violate any fundamental TFS principles but I can understand that it may not be useful for most people.

Jeff

Rocinante8

I wonder if you could put the files onto a shelveset, updated your workspace and then unshelve to the new folder where you should be able to check them back in. Might be worth a try.

- Steve




http://sstjean.blogspot.com
Steve St.Jean
Easier to just run Get. You'll get an error about not being able to move the files off the dead drive -- ignore it.
Richard Berg MSFT

Hello Steve,

Thanks for the suggestion, I'll give this a shot.

Jeff

Rocinante8
Not really. Even if you change your workspace mappings, running Get will move most of your files to the new location, but TFS won't touch files that are checked out.
Richard Berg MSFT
reply 7

You can use google to search for other answers

 

More Articles

Removing old versions
Source Control Explorer - Sort by file extension?
Migrations from 2003 to 2005
Difference between two Labels?
Shelveset manipulation
Lockup during TFS operations
Extend version control at time of check in
TF14087: Cannot undelete...because not all of the deletion is bei...
No appropriate mapping exists for $/Project/Branch/File.cs
Adding CC list to work item/bug?
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

Pending changes error
Setting TFS SC through code
Checkout error after changing machines
Date Time Field in Source Control Explorer
TF60096 error migrating using VssConverter
Upgraded from VSS, Web app bindings not …
Lock Binary Files on Checkout
Labeling and local files
Synchronizing current file in Solution E…
BisSubscribe vs TfsSubscribe
team system version control for non micr…
TF Workspace command-line
Report ChangeSet Details
Official data about overhead and perform…
Source COntrol Administration

Hot Articles

TFS Proxy returns error in the middle of…
Grey subfolders in Team Explorer
Checkin changes on behalf of another user
Database Size limits
List of files updated?
Get Latest Version from Source Control E…
Visual Source Safe -> Source Control …
Can I merge two branch manually?
Is this Is right Way to Share Code in TF
How to restore the mistakenly dele…
tf merges command - slow - timing out - …
Branching Web Projects and IIS virtual d…
Create and add to SC custom solution
Slow VS 2005 performance
How to establish CMM baselines for items…

Recommend Articles

Version Treeview
BUG: Checkin of binary file not detectin…
Solution with multiple projects can't pe…
How to determine solution workspace?
TF15013: The requested team foundation s…
Mapping a new Team Project to a non-root…
Undo unshelve
Branch or second workspace?
Require a Changeset comment on CheckIn
Check in DLLs or else to Source Control
Team Foundation Server SCC Api
Error in unshelve - 'Cannot insert null …
Two different ID's seems to see the same…
How to "perminately" delete a …
Using MSSCCI provider. How to "re-…