VSS data (Part III)
About the use of Chapter III VSS
About 3.1 interface
Figure 4 VSS basic interface menu bar and toolbar, we will be described in detail in the future, tell us about the following project directory and file areas:
Ø Project directory area: Show all are using the directory, we can list in my area to create the directory, you can delete or modify the directory (in the definition of competence, we ban all users to delete the directory).
Ø District documents show that: in the selected directory, the file display will show all the directory files and can view the file information, such as the directory is edited by whom, etc..
3.2 Change User Password
Initialized in our definition, we give all users are given the initial password is a blank password, so the code in order to ensure the integrity and security, all users need to log in to change your password.
Please change your password in the menu bar "Tools" à "Change Password ...", in the new dialog box that pops up enter the old password (ie blank password), and then re-type the new password twice so that the entry into force of the new password.
3.3 Create directory
See Figure 5, is a simple list of areas
Figure 5 the basic functions of the district directory, we set up in the permissions, only allow users in my directory (ie "/ $ / Amethyst 2.0 platform / personal backup / [username]" ([username] username that I ) directory under the directory and allow to create a new directory, the directory in other areas does not allow users the freedom to create.
Example: For example, Wang Chao users log in, be in the directory area, "Wang Chao," the above article directory Right-click pop-up menu, we can choose to "Create Project", which can create a new directory of the district.
Figure 6 to create a new directory in the dialog box shown in Figure 6, we input the name of the directory, and then in the comment section of the directory to write simple notes (VSS not allow comments, but we suggest to you all that a simple increase in the Notes section of shows a simple function of the directory). Click "OK" button that can create a new directory.
3.4 specify the working directory
As shown in Figure 5, right column function, we can see that the second is the "Set working Folder ...", that is, specify the working directory, it means that the specific machine in the directory to the directory to create a mirror, Well, after we the files in the directory detection (Check out), the document can be specified directory to find local work.
3.5 Add Files
Figure 7 Toolbar
Like other software with Microsoft, each of the functions we are able to be achieved through a variety of ways, in which the same VSS, such as we have mentioned in 3.3 to create the directory functions, and a toolbar button which functions is the same. We can not be described at a later date, please use them in their own experience.
We now explain the second button, "Add Files ...", this initialization file in the directory particularly useful.
We should first of all districts in the directory selected a directory, that is ready to add files to select a target directory (that is, options in the above with the mouse click). And then this button, a new pop-up dialog box.
Add Files dialog box Figure 8
This dialog box we can see that it is more a document of the original dialog box. We can use their mouse to choose a single file and then press the "ADD" button to add it to our directory were selected to go. Can also select with the mouse button when pressed for re-election Shite (that is, a row select multiple documents), or press the Ctrl key for multiple selections (the first interval to select multiple files).
Figure 9 Add Files
In accordance with "Add" button will pop-up dialog box in Figure 9, we can enter a short text of the Notes, described in these documents, in the following, we can see a check button (Apply same comment for all files), we can generally be on the hook, so that each file can use the same note, if you do not check this check button, then you choose will depend on the documents, will once again pop up the dialog box to let you enter Notes for a particular document.
Check the following three buttons must be in accordance with "Addvanced>>" button before the show. We can choose, respectively.
Sometimes we will encounter such a situation, in our project document which not only contains a separate file, and also contains many subdirectories, then how do we do?
In fact, method of operation is very simple, all we need as in the figure below, in Windows, browse to the folder, and choose to join the files and subdirectories, and then use the mouse to drag the VSS can display the document.
Figure 10 Batch add files
3.6 Check in and Check Out
VSS them in Check in (check) and the Check out (check out) is a very important concept, you will be fashionable to sign your documents, your local files in the directory will be set to read-only attribute, in such state, you can not modify the document.
We need to revise the document on the need to use the Check Out command, will be selected to sign a document at this time, you will be able to document the freedom to change, which in the VSS, the file will show whom are editors, and other users of the document can no longer operate, and ensure the unity of the documents and safety.
Check out the button on the document can not only check out the action, but also can check out the entire directory action, we can deal with accordingly.
Check in button, and Check Out the same file operations can be carried out, they can operate on the directory.
In addition, we have a button is the Undo Check Out, if we are at the last Check Out, after a certain modifications, but feel suddenly changed to such an amendment is unnecessary, and we have been unable to use in the editor " removed "command to return to its original state, you can use the Undo Check out button, is once again in its original form document.
In addition, there is a Get Last Version, we can select the file, the right menu to see its role is similar to the document from which a direct copy of a VSS backup file to a specified directory.
3.7 Version management functions
We can see them on the toolbar button Show Differences and the Show History button, which is also very important version control functions. We can also specify the file in a menu which features the right to find the corresponding menu item.
Show Differences can be found in the existence of local files with the VSS database file (the last version of) the similarities and differences, if we were not always in strict accordance with the Check In and Check Out this model work, if found in different places, please use Get Last Version history version of the database from the server to get the latest version.
The Show History of all the document can be modified to give a corresponding table, as follows:
Figure 11 version of the history of the dialog box
We can see that file in the VSS database abc.txt There are three versions of the first version is obtained by adding the time.
The second and third version is a revised version of a new version of memory, of which version 3 is the latest version.
If we need the most primitive version, we can first select the version 1, and then click the button "Get" that is available to the original version, if we need to get version 2, methods of operation Ibid. At the same time, we can also use the "Rollback" button to roll back versions. In that case, we can easily manage on the version.
.Net Object Oriented Programming Articles
- To: design patterns Singleton (the example is C #)
- Words - a prototype model
- Words: one-piece model
- To the practical application of a factory. Can be directly used by heart
- To: "simple" design pattern, then
- I Walaqi, such as with Black_Cat on "design patterns" and "factory method" "abstract factory" organize the discussion as follows, to facilitate "design mode" fans
- Words - the structure of model
- Remarks: With regard to the composition of
- Give you an example [. NET framework for development in the three examples - the user registration system]
- Jia-wen Recommended: VB.NET use object-oriented features
- Microsoft patterns and practices: model papers (Microsoft Patterns & Practices: Patterns) [strongly recommended]
- C # written norms
- Help me, I overloading (C #)
- Microsoft. NET's base class inheritance (1)
- Microsoft. NET's base class inheritance (2)
- The birth of a poker game --- (fullhouse) category on the process of design and debugging, error correction and the use of assertion (I)
- VSS data (Part III)
- VSS information (Part II, picture not uploaded)
- VSS information (and I wrote for the company, part of ICP's)
- In the team development environment using Visual Studio. NET (b)
Can't Find What You're Looking For?
Rating: Not yet rated