![]() You can unlock a locked item by using the none option. If you lock a folder, you don't have to lock the files it contains unless you want to apply the more restrictive check-out lock to a file in a folder that has a check-in lock. ![]() Locks on folders are implicitly recursive. Unlike the checkout command, lock doesn't automatically make a file editable. If the files aren't checked out, a lock change is added to the set of pending workspace changes. If you have a file checked out when you lock it, its status is modified to contain the new lock type. You can't acquire a check-out lock if there are currently any pending changes to an item.įor more information about when to apply a check-out lock and when to apply a check-in lock, see Understand lock types. When you apply a check-out lock to a version-controlled file or folder, users can neither check out the item for edit nor check in pre-existing pending changes. The changes can't be checked in until you explicitly remove the check-in lock from the workspace.Ī check-out lock is more restrictive than a check-in lock. When you apply a check-in lock, users can continue to make local changes to the item in other workspaces. TFVC provides two types of locks: checkin and checkout.Ī check-in lock is less restrictive than a check-out lock. For more information, see Lock and unlock folders or files. Locks placed with rename apply both to the old and new namespaces. Delete command (Team Foundation Version Control)įor add and branch, the lock is placed on the namespace where the new item will be created.Rename command (Team Foundation Version Control).You can lock an item using the lock command or by specifying a lock option during the commission of several other tf command-line utility commands, including: As a courtesy to your teammates, notify them when you apply a lock to an item, explain why you are doing this, and estimate when you plan to remove the lock, if you can.įor more information on how to use the tf command-line utility, see Use Team Foundation version control commands. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |