SVN common Command Set

Source: Internet
Author: User
Tags svn update

SVN common Command Set


SVN is the difference between viewing the local text and the files in the repository before committing. The return value has a number of specific meanings:
L ABC.C # SVN is already locked in the. SVN directory ABC.C
The contents of M bar.c # BAR.C have been modified locally
M BAZ.C # BAZ.C property has been modified, but no content modified
X 3rd_party # This directory is part of the external definition
? FOO.O # SVN does not manage foo.o
! Some_dir # SVN manages this, but it may be missing or incomplete
~ Qux # has been versioned as a file/dir/link, but the type has changed
I. SCREENRC # SVN does not manage this, configuration determines to ignore it
A + Moved_dir # contains historical additions, history records its origins
M + Moved_dir/readme # contains historical additions and has local modifications
D STUFF/FISH.C # This file is scheduled to be deleted
A stuff/loot/bloo.h # This file is scheduled to be added
C STUFF/LOOT/LUMP.C # This file has been updated with a conflict
R XYZ.C # This file is scheduled to be replaced
S Stuff/squawk # This file has been jumped to the branch




In this format, SVN status prints Five column characters, followed by a few spaces, followed by a file or directory name. The first column tells the state of a file or its contents, and the return code is interpreted as follows:
A item file, directory, or symbolic chain item is scheduled to be added to the repository.
The C item file has a conflict with the local version when it is updated from the server and must be manually resolved before you commit to the repository.
The D item file, directory, or symbolic chain item is scheduled to be deleted from the repository.
The contents of the item of the M item file have been modified.
The R item file, directory, or symbolic chain item is scheduled to be replaced with item in the repository, which means that the object is first deleted, and another object of the same name is about to be added, and all operations occur in a revised version.
The X item directory is not versioned, but is associated with the external definition of subversion, and you can see the "External definition" section for external definitions.
? Item file, directory, or symbolic chain item is not under version control, you can ignore this problem by using the SVN status--quiet (-Q) parameter or the Svn:ignore property of the parent directory, for the use of ignoring files, see the "Svn:ignore" section.
! Item file, directory, or symbolic chain item is under version control but is missing or incomplete, which may be caused by the use of non-subversion command removal, if it is a directory, it could be a check-out or an update interrupt, using SVN Update can get files or directories from the repository again, or use svn revert file to recover the original files.
~ Item file, directory, or symbolic chain item already exists in the repository, but your working copy is another. For example, you delete a repository file, create a new one in its original location, and do not use SVN delete or SVN add for the entire process.
I item file, directory or symbolic chain item is not under version control, Subversion is configured to ignore this file in the SVN Add, SVN import, and SVN status commands, and for the Ignore file, see section "Svn:ignore". Note that this symbol will only appear when you use the SVN status parameter--no-ignore-otherwise the file will be ignored and will not be displayed!


The second column describes the state of the properties of the file or directory, and if an M appears in the second column, the property is modified, otherwise the blank is displayed.
The third column shows only white space or l,l indicates that subversion has locked the project in the. SVN workspace, and when your SVN commit is running-perhaps entering log information, running SVN status (SVN st) you can see the L flag, If subversion is not running at this point, you can speculate that subversion is interrupted and locked, and you must run SVN cleanup to clear the lock.
The fourth column will only show a blank or +,+ meaning that a file or directory with additional historical information is scheduled to be added or modified to the repository, usually in SVN move or SVN copy, if you see A + meaning to include an increase in history, it can be a file or a copy of the root directory. + indicates that it is part of the directory that will include history additions to the repository, meaning that his parent directory is to be copied, and it is just followed. M + indicates an increase in the history that will be included and has changed. When you commit, the parent directory is the first to include the history of the additions, and then the local changes are committed to the changed version.
The fifth column shows only white space or s, indicating that the directory or file has been moved to a branch (using SVN switch).

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

SVN common Command Set

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.