In the previous article, we introduced some frequently used commands and skills. In this article, we will introduce several uncommon commands in Linux svn with examples.
List of files and directories in the version Library
Svn list path: displays all files and directories in the path directory that belong to the version library. Short for: svn ls
Create a new directory under Version Control
Svn mkdir: Create a new directory under version control.
Usage: 1. mkdir PATH... 2. mkdir URL...
Create a version control directory.
1. Each directory specified by the working copy PATH will be created on the local end and added to the new
Scheduling to wait for the next submission.
2. Each directory specified with a URL is created by submitting it to the repository immediately.
In both cases, all the intermediate directories must exist in advance.
Restore local modification
Svn revert: restore the original unchanged working copy file (recover most local modifications ).
Revert: Usage: revert PATH...
Note: The sub-commands do not access the network and will release the conflict. But it won't be restored.
Deleted directory
Code library URL change
Svn switch (sw): update the working copy to different URLs.
Usage: 1. switch URL [PATH] 2. switch-relocate from to [PATH...]
1. update your work copy and map it to a new URL. The behavior is similar to "svn update" and
Merge files on the server with local files. This maps the work copy to a branch or tag in the same warehouse.
Method.
2. Rewrite the URL metadata of the working copy to reflect the changes on the simple URL. When the root URL of the Repository changes
(For example, the solution name or host name change), but the working copy is still mapped to the same directory in the same repository.
This command updates the correspondence between the working copy and the warehouse.
Resolve Conflicts
Svn resolved: the "Conflict" Status of directories or files that remove working copies. Usage: resolved PATH... Note: subcommands do not follow the syntax to resolve conflicts or remove conflicting tags. They only remove conflicting files and then allow the PATH to be submitted again.
Output the content of the specified file or URL
Svn cat target [@ version]… If a version is specified, search for it from the specified version. Svn cat-r PREV filename> filename (PREV is the previous version, you can also write a specific version number, so that the output result can be submitted)