Submit your modifications to the version Library

Source: Internet
Author: User
Tags bug tracking system tortoisesvn

Send your modifications to the working copy to the version library, calledSubmitModify. However, make sure that your work copy is up to date before you submit the job. You can directly use tortoisesvn → update, or use tortoisesvn → check the modifications to see which files have been modified locally or on the server.

Submit dialog box

If your work copy is up-to-date and there is no conflict, you have prepared for the submission. Select the file and/or folder you want to submit, then tortoisesvn → submit ....

Figure 5.8. Submit dialog box

The submit dialog box displays each modified file, including new, deleted, and uncontrolled files. If you do not want to change the file to be submitted, you only need to remove the check box of the file. If you want to add an uncontrolled file, you only need to check the file and add it to the submission list.

The items that are switched (switched) to different version library paths are also used(s)Mark. When the job is on the branch, you may switch to somewhere and forget to switch back to the trunk. This is your warning signal!

Submit a file or a folder?

When you submit a file, the submit dialog box only displays the file you mentioned. When you submit a folder, the submit dialog box automatically selects a file with changes. If you forget a new file you created, submitting the folder will allow you to find it. Submit a folderNoThis means that every file has been marked as modified. It only helps you do more to make your life more moist.

If the file you modified issvn:externalsThese changes are not automatically submitted if they are included in another version library. The warning symbol below the file list will tell you whether this situation has occurred. tooltip prompts that external files must be submitted separately.

The submit dialog box contains many uncontrolled files.

If you think that the submit dialog box shows too many files without version control (such as files generated by the compiler or backup files in the editor), there are several ways to handle this situation. You can:

  • Add a file (or wildcard extension) to the exclusion list on the settings page. This works for each working copy.

  • Use tortoisesvn → Add the object to the ignore listsvn:ignoreList. This only setssvn:ignoreThe path of the property is valid. In the svn Properties dialog box, you can changesvn:ignoreAttribute.

For more information, see the ignore files and directories section.

In the submit dialog box, double-click any modified file to run the external diff tool to display your changes. The context menu gives you more options. Please refer to the screen. You can drag a file to another application, such as a text editor or IDE.

You can select or deselect items by clicking on the checkbox to the left of the item. For directories you can useShift-Select to make the action recursive.

The columns displayed on the bottom panel can be customized. If you right-click the header of any column, you will see a context menu that allows you to select which column to display. You can also drag a hand to change the column width when you move the cursor over the column boundary. These customized content will be retained, and you will see the same columns next time.

By default, when you submit the changes, the locks you hold on these files will be automatically released. If you need to retain the lock, check the check box to retain the lock. The default status of this check box is fromno_unlockOption. Refer to the general Settings section for more information about editing the Subversion configuration file.

Drag and Drop

You can drag the file from another location to the submit dialog box, as long as the working copy is checked out from the same version library. For example, if you have a large working copy, you need to open several Resource Manager windows to view different folders in the hierarchy. If you want to avoid submitting from top-level folders (lengthy and slow check on folder changes), you can open a folder submission dialog box and drag the items in other windows into it, you can submit them once.

You can drag unversionable files to the work copy submit dialog box to automatically add them.

Change external name

Sometimes files are not renamed using subversion, so they appear in the file list as files that are lost or not under version control. To avoid loss of history, you must notify subversion. Simply select the old name (lost) and new name (not version controlled), and then use the right-click menu → repair move to indicate that the two files are renamed.

Modify list

The commit dialog supports subversion's changelist feature to help with grouping related files together. Find out about this feature in the "Modify list" section.

Excluding items from the commit list

Sometimes you have versioned files that change frequently but that you really don't want to commit. Sometimes this indicates a flaw in your build process-why are those files versioned? Shocould you be using template files? But occasionally it is inevitable. A classic reason is that your ide changes a timestamp in the project file every time you build. the project file has to be versioned as it should des all the build settings, but it doesn' t need to be committed just because the timestamp changed.

To help out in awkward cases like this, we have reserved a changelist calledignore-on-commit. Any file added to this changelist will automatically be unchecked in the commit dialog. You can still commit changes, but you have to select it manually in the commit dialog.

Submit log information

Make sure that you enter the log information describing the modified content you submitted. This will help you review what you did and when you did it. The information content can be long or short. Many projects specify the content to be included, the language used, and even the strict format.

You can use a convention similar to email to simply format log messages. IfTextUse these styles* Text *Bold,_ Text _Underline,^ Text ^Italics.

Figure 5.9. Spelling Checker in the submit dialog box

Tortoisesvn contains a spelling checker to help you write log information correctly. Highlight any misspelled words. Right-click the menu to obtain the modification suggestions. Of course it will not knowAllTechnical terms, so sometimes some words with the correct spelling are considered wrong. You can use the right-click menu to add them to your dictionary.

The log message window also except des a filename and function auto-completion facility. this uses regular expressions to extract class and function names from the (text) files you are committing, as well as the filenames themselves. if a word you are typing matches anything in the list (after you have typed at least 3 characters, or pressedCTRL + Space), A drop-down appears allowing you to select the full name. The regular expressions supplied with tortoisesvn are held in the tortoisesvn InstallationbinFolder. You can also define your own regexes and store them in%APPDATA%\TortoiseSVN\autolist.txt. Of course your private autolist will not be overwritten when you update your installation of tortoisesvn. If you are unfamiliar with regular expressions, take a look at the introductionHttp://en.wikipedia.org/wiki/Regular_expression, And the online documentation and tutorialHttp://www.regular-expressions.info/.

You can re-use previusly entered log messages. just click on recent messages to view a list of the last few messages you entered for this working copy. the number of stored messages can be customized in the tortoisesvn Settings dialog.

You can clear all stored commit messages from the saved data page of tortoisesvn's settings, or you can clear individual messages from within the recent messages dialog usingDeleteKey.

Specify folder Properties

There are several special folder attributes that can be used to help us get more control over the format of the submitted log information and the spelling check module. For more information, see the "Project Settings" section.

Integration with defect tracking tools

If you have activated the bug tracking system, you can set one or more issues in the bug-ID/issue-Nr: text box. multiple issues shocould be comma separated. alternatively, if you are using RegEx-based BUG Tracking Support, just add your issue references as part of the log message. learn more in "integration with bug tracking systems/problem tracking" section.

Submission process

After you press OK, a dialog box is displayed, showing the submission progress.

Figure 5.10. Dialog Box showing the submission progress

The progress dialog box uses color code to highlight different submission behaviors.

Blue

Submit a modification.

Purple

Submit a new item.

Shen Hong

Submit a deletion or replacement task.

Black

All other items.

This is the default color scheme, but you can customize these colors by setting the dialog box. For more information, see the tortoisesvn color settings section.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.