Comment cartographier les dossiers existants (qui sont déplacés vers une nouvelle machine) avec le TFS sans avoir besoin de télécharger toutes les données de TFS?

StackOverflow https://stackoverflow.com/questions/6055518

Question

Plus tôt j'avais mappé mes dossiers locaux à la TFS.Je devais changer de machine / ordinateur pour une raison quelconque.J'ai donc copié tous les dossiers sur la nouvelle machine.

Maintenant, lorsque j'essaie de cartographier les dossiers TFS sur les dossiers existants de la nouvelle machine, il affiche toujours Not Downloaded dans la colonne Latest du Source Control Explorer (VS 2010).Je peux obtenir la dernière version, mais il fait beaucoup de temps.

Quelqu'un peut-il suggérer un moyen d'établir une relation entre les dossiers existants et les dossiers TFS en moins de temps?

Était-ce utile?

La solution

What you need is to have a workspace in your new machine that only has the mappings of your folders in TFS. If you just map your folders in your workspace, when you do a get, only files in your folders are downloaded locally, not the entire version control tree in TFS. Since you can copy your folders from one machine to another, downloading them from the server again shouldn't take more time than that.

From Source Control Explorer, let say you use the default workspace:

  1. If you have jus a few folders, right click at each one and choose "Map to Local Folder", then specify the local path.

  2. Alternatively, you can map from the root folder (of your folders), then cloak the ones that you don't want to download. Open the drop-down list of workspaces and choose "Workspaces", then choose to edit your workspace, then you can add and cloak the mappings of your folders like this:

enter image description here

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top