Anda di halaman 1dari 2

Subversion® Quick Reference Card

For Subversion 1.6 Merge a branch to trunk? svn merge --reintegrate BRANCHURL changelist MYCHANGE foo.c bar.h
Indicate that merge conflicts have been resolved? svn resolved Switches: --remove
WCPATH… checkout URL[@REV]…[WCPATH]
Atomic Commit – Collection of modifications either goes into the Display the differences between two revisions of a file? svn diff Switches: --revision, --quiet, --non-recursive, --depth, --
repository completely or not at all. (* see command for exact syntax) username, --password, --no-auth-cache; --non-interactive, --
Branch – A line of development that exists independently of another config-dir, --ignore-externals
line yet shares a common history. cleanup [WCPATH…]
Property – Name/value pairs associated with an element (directory Create a property on file/dir/rev? svn propset PROPNAME
Switches: --diff3-cmd, --config-dir
or file) or a revision (unversioned). Edit a property value? svn propedit PROPNAME commit [WCPATH…]
Repository – A central store of data stored in the form of a Get the value of a property? svn propget PROPNAME
Switches: --quiet, --non-recursive, --depth, --targets, no-unlock, -
filesystem tree (a typical hierarchy of files and directories). List properties? svn proplist
-message, --file, --changelist, --force-log, --editor-cmd, --
Revision – The state of the repository after a singe atomic commit Delete a property from an item? svn propdel PROPNAME encoding, --username, --password, --no-auth-cache, --non-
with an associated global revision number. Define the MIME type for a file? svn propset svn:mime-type
interactive, --config-dir
Tag – A snapshot of a project in time that is given a human-friendly Which file patterns will Subversion ignore? svn propget
copy SRC DST
name. svn:ignore Is a file listed as executable? svn propget
Switches: --revision, --quiet, --message, --file, --force-log, --
URL – Path to the repository or a working copy svn:executablePopulate a working copy from another repo? svn
editor-cmd, --encoding, --username, --password, --no-auth-
file:// Direct repository access (on local disk) propset svn:externals (*see command for exact syntax)
cache, --non-interactive, --config-dir
http:// WebDAV access to Subversion aware Apache server. !
! " delete WCPATH | URL
https:// Same as http://, but with SSL encryption Switches: --force, --quiet, --targets, --message, --file, --force-log,
Update WC to another branch/tag/rev? svn switch URL
svn:// Access via custom protocol to an svnserve server. --editor-cmd, --encoding, --username, --password, --no-
[WCPATH]
svn+ssh:// Same as svn://, but through an SSH tunnel. auth-cache, --non-interactive, --config-dir
Import dirs and files from file system? svn import [WCPATH]
Working copy – A user’s own local copy of portions of the repository diff
URL
where they can make changes. • diff [-r N[:M]] [TARGET[@REV]…]
Export dir without Subversion admin dirs/files? svn export
Set a keyword? svn propset svn:keywords • diff [-r N[:M]] --old OLD-TGT[@OLDREV] [--new NEW-
URL – Subversion Repository URL Set end of line style? svn propset svn:eol-style TGT[@NEWREV]] [WCPATH…]
WCPATH – Working copy path Output the file contents from a repository? svn cat URL • diff OLD-URL[@OLDREV] NEW-URL[@NEWREV]
TARGET – Working copy path or URL #! " • Switches: --revision, --change, --old, --new, --changelist, --
… – Multiple files, directories, TARGETS non-recursive, --depth, --diff-cmd, --extensions [--unified | --
U File was updated.
REV – Revision number or revision keyword ignore-space-change | --ignore-all-space | --ignore-eol-style],
A File was added. --no-diff-deleted, --notice-ancestry, --summarize, --force, --
OPREV:PEGREV – Revision range, using an operative revision D File was deleted.
and peg revision. username, --password, --no-auth-cache, --non-interactive, --
R File was replaced.
@PEGREV – Revision range, using peg revisions. config-dir
G File was merged. export [-r rev] URL[@PEGREV] | WCPATH1[@PEGREV]
C Conflicting changes.
[WCPATH]
E File existed. Switches: --revision, --quiet, --non-recursive, --depth, --force, --
? Resource is not under version control. username, --password, --no-auth-cache, --non-interactive, --
Get help online? svn help [SUBCOMMAND] ! Resource is missing or incomplete
config-dir arg, --native-eol arg, --ignore-externals
Create a working copy? svn checkout URL
$ help [SUBCOMMAND…]
Update working copy? svn update [WCPATH…]
$Date$ Date of the last modification Switches: --config-dir import [WCPATH] URL
Add a file(s) and/or directory(ies)? svn add [WCPATH]
$Rev$ Revision Number Switches: --quiet, --non-recursive, --auto-props, --no-auto-
Delete a file(s)/directory(ies)? svn delete WCPATH \ URL
$Author$ Last user who changed the item props, --message, --file, --force-log, --editor-cmd, --encoding, --
Move/rename file(s) and/or directory(ies)? svn move SRC DST
$URL$ Full URL to the latest repository version of the file no-ignore, --username, --password, --no-auth-cache, --non-
Revert all my local changes? svn revert WCPATH…
$ID$ Compressed combo of all keywords except $URL$ interactive, --config-dir arg
Copy a file(s) or directory(ies)? svn copy SRC DST
import [PATH] URL
Commit changes to the repository? svn commit [WCPATH…] % & ! Switches: --depth, --quiet, --force, --username, --password, --
If my commit fails due to a crash, cleanup my working copy to retry? Native Use the standard EOL style of the client OS no-auth-cache, --non-interactive, --config-dir, --message, --file, -
svn cleanup [WCPATH…] CRLF Typical EOL style for Windows platform -force-log, --editor-cmd, --encoding, --with-revprop, --auto-
How do I lock a file/directory? svn lock TARGET… LF Typical EOL style for Unix platform props, --no-auto-props, --no-ignore
How do I unlock a file/directory? svn unlock TARGET… CR Old Macintosh EOL style not likely to be used info [TARGET…]
Switches: --revision, --recursive, --depth, --targets, --changelist,
Display commit logs? svn log [WCPATH] | URL [WCPATH…] add WCPATH --incremental, --xml, --username, --password, --no-auth-cache, -
Determine who made what changes? svn blame TARGET Switches: --targets, --non-recursive, --depth, --quiet, -- -non-interactive, --config-dir
Get the status of my working copy? svn status [WCPATH…] config-dir, --force, --no-ignore, --auto-props, --no-auto-props. list [TARGET[@REV]…]
Get a list of directories in the repository? svn list [TARGET…] blame TARGET[@REV] … Switches: --revision, --verbose, --recursive, --depth, --
Get information on PATHs? svn info [TARGET…] Switches: --revision, --verbose, --incremental, --xml, -- incremental, --xml, --username, --password, --no-auth-cache, --
extensions [[--unified] [--ignore-space-change] [--ignore-all- non-interactive, --config-dir arg
space] [--ignore-eol-style]], --force, --username, --password, lock TARGET…
Create a tag? svn copy here /tags/newtag Switches: --targets, --message, --file, --force-log, --encoding, --
Create a branch? svn copy TARGET /branches/newbranch --no-auth-cache, --non-interactive, --use-merge-history, --
config-dir username, --password, --no-auth-cache, --non-interactive, --
Merge file changes from one branch to another? svn merge config-dir, --force
frombranchfile[ targetbranchfile] cat TARGET[@REV] …
Switches: --revision, --username, --password, --no-auth- log
Merge trunk changes to branch? svn merge TRUNKURL
cache; --non-interactive, --config-dir • log [WCPATH]

www.collab.net
• log URL [WCPATH…] Switches: --revision, --non-recursive, --depth, --quiet, --diff3- message (m) MSG
• Switches: --revision, --quiet, --verbose, --targets, --stop-on- cmd, --relocate, --username, --password, --no-auth-cache, -- Specify a commit message MSG.
copy, --incremental, --xml, --username, --password, --no- non-interactive, --config-dir noauthcache
auth-cache, --non-interactive, --config-dir, --use-merge- unlock TARGET… Prevents caching of authentication information.
history, --limit Switches: --targets, --username, --password, --no-auth- noautoprops
merge cache, --non-interactive, --config-dir, --force Disable autoprops, overriding the enableautoprops directive in
• merge sourceURL1[@N] sourceURL2[@M] [WCPATH] update [WCPATH…] the config file.
• merge sourceWCPATH1[@N] sourceWCPATH2[@M] Switches: --revision, --non-recursive, --changelist, --depth, -- nodiffdeleted
[WCPATH] quiet, --diff3-cmd, --username, --password, --no-auth-cache, Prevents Subversion from printing differences for deleted files.
• merge –r N:M SOURCE[@REV] [WCPATH] --non-interactive, --config-dir, --ignore-externals noignore
• Switches: --revision, --change, --non-recursive, --depth, -- Shows files in the status listing that would normally be omitted
quiet, --force, --record-only, --reintegrate, --dry-run, --diff3- since they match a pattern in the svn:ignore property.
change (c) ARG noninteractive
cmd arg, --extensions [--unified | --ignore-space-change | -- The change made by revision ARG (like -r ARG-1:ARG). If
ignore-all-space | --ignore-eol-style], --ignore-ancestry, -- Prevents prompting for authentication information.
ARG is negative this is like -r ARG:ARG-1 nonrecursive (N)
username, --password, --no-auth-cache, --non-interactive, -- changelist ARG
config-dir Stops a subcommand from recursing into subdirectories.
Filters targets based upon the members of the changelist. noticeancestry
mergeinfo WCPATH configdir DIR
Switches: --revision, --username, --password, --no-auth-cache, Pay attention to ancestry when calculating differences.
Read configuration from DIR instead of ~/.subversion. old ARG
--non-interactive, --config-dir depth=[empty|files|immediates|infinity]
mkdir WCPATH | URL … Uses ARG as the older target.
Sets depth values as it updates the working copy, password PASS
Switches: --quiet, --message, --file, --force-log, --editor-cmd, -- diffcmd CMD
encoding, --username, --password, --no-auth-cache, --non- Password for authentication.
Use external program CMD for generating diff output instead quiet (q)
interactive, --config-dir of internal diff engine.
move SRC DST Print only essential information while performing an operation.
diff3cmd CMD record-only Mark revisions as merged (use with -r).
Switches: --revision, --quiet, --force, --message, --file, --force- Use external program CMD for merging files.
log, --editor-cmd, --encoding, --username, --password, --no- recursive (R)
dryrun Makes a subcommand recurse into subdirectories.
auth-cache, --non-interactive, --config-dir arg Run the command without changing anything.
propdel PROPNAME [WCPATH…] | --revprop –r REV [URL] reintegrate
editorcmd CMD Used when merging a branch back to trunk
Switches: --quiet, --recursive, --depth, --revision, --revprop, -- Use external program CMD for editing files.
changelist, --username, --password, --no-auth-cache, --non- relocate FROM TO [PATH...]
encoding ENC Used with the svn switch subcommand, changes the location of
interactive, --config-dir Instructs Subversion to use encoding ENC to store log
propedit PROPNAME [WCPATH…] | --revprop –r REV [URL] the repository that your working copy references.
messages. revision REV (r)
Switches: --revision, --revprop, --username, --password, --no- extensions ARG (x)
auth-cache, --non-interactive, --encoding, --editor-cmd, --force, - Supply revision (or range of revisions) for the operation.
Default: '-u'. When Subversion is invoking an external diff revprop
-config-dir program, ARG is simply passed along to the program. But
propget PROPNAME [WCPATH…] | --revprop –r REV [URL] Operates on a revision property instead of a Subversion
when Subversion is using its default internal diff property specific to a file or directory (requires revision switch).
Switches: --recursive, --depth, --revision, --revprop, --changelist, implementation, or when Subversion is displaying blame
--strict, --username, --password, --no-auth-cache, --non- showupdates (u)
annotations, ARG could be any of the following: Causes the client to display information about which files in
interactive, --config-dir --unified (-u)
proplist [TARGET[@REV…] | --revprop –r REV [URL] your working copy are out-of-date.
Output 3 lines of unified context. stoponcopy
Switches: --verbose, --recursive, --depth, --revision, --quiet, -- --ignore-space-change (-b)
revprop, --changelist, --username, --password, --no-auth-cache, Stop harvesting historical information when a copy is
Ignore changes in the amount of white space. encountered.
--non-interactive, --config-dir --ignore-all-space (-w)
propset strict
Ignore all white space. Causes Subversion to use strict semantics.
• PROPNAME [PROPVAL | -F VALNAME] WCPATH… --ignore-eol-style summarize
• PROPNAME --revprop –r REV [PROPVAL | -F VALNAME] Ignore changes in EOL style Show a summary of the results
[URL] file FILE (F) targets FILE
Switches: --file, --encoding, --quiet, --revision, --targets, -- Use the contents of file FILE as an argument for a given Get the list of files that you wish to operate on from the file
recursive, --depth, --revprop, --changelist, --username, -- subcommand. FILE.
password, --no-auth-cache, --non-interactive, --force, --config- force username NAME
dir Forces a particular subcommand to run. Username for authentication.
resolved WCPATH … forcelog verbose (v)
Switches: --targets, --recursive, --depth, --quiet, --config-dir Forces a suspicious parameter passed to the message Verbose mode.
revert WCPATH… options to be accepted as valid. version
Switches: --targets, --changelist, --recursive, --depth, --quiet, -- help (h or ?) Prints the client version info.
config-dir Prints help for a given command or general help text. xml
status [WCPATH…] ignoreancestry Prints output in XML format.
Switches: --show-updates, --verbose, --non-recursive, --depth, - Ignore ancestry when calculating differences (rely on path
-changelist, --quiet, --no-ignore, --incremental, --xml, -- contents alone).
username, --password, --no-auth-cache, --non-interactive, -- incremental
config-dir, --ignore-externals Prints output in a format suitable for concatenation.
switch URL [WCPATH] | --relocate FROM TO [WCPATH…]
www.collab.net

Anda mungkin juga menyukai