You are on page 1of 2

Subversion 1.4.

6
Subversion ,
CVS
.
:
svnadmin create /PATH/REPO
.
svn import /PATH/DIR file:///PATH/REPO/project
.
svn checkout file:///PATH/REPO/project /PATH/working/copy
(WC).
cd /PATH/working/copy
.
svn help [command]
svn.
(URL) Subversion:
file://
.
http://
Apache WebDAV.
https://
http:// SSL-.
svn://
svnserve.
svn+ssh://
svn:// SSH.
Subversion:
svn
.
svnadmin
.
svndumpfilter
.
svnlook
.
svnserve
svn://.
svnsync
.
svnversion
.
() svn:
add
(
commit).
blame [praise, annotate, ann]

.
cat

.
checkout [co]

.
cleanup
(
, ).
commit [ci]

.
copy [cp]

).
delete [del, remove, rm]

(
).
diff [di]

.
export

.
help
svn.
import

.
info

.
list [ls]
.
lock
.
1

log
merge

.
2-
.
mkdir
.
move [mv, rename, ren]

.
propdel [pdel, pd]
.
propedit [pedit, pe]
.
propget [pget, pg]
.
proplist [plist, pl]
.
propset [pset, ps]
.
resolved

.
revert
.
status [stat, st]

( -u).
switch [sw]
URL.
unlock
.
update [up]
.
(, ) svn:
--auto-props
.
--change [-c] REV
, REV (,
-rREV-1:REV); REV , ,
-rREV:REV-1.
configdir DIR
DIR ( ~/.subversion).
diffcmd CMD
CMD .
diff3cmd CMD
CMD .
dryrun
, .
editorcmd CMD
CMD, .
encoding ENC
ENC .
extensions [x] ARG
ARG .
file [F] FILE
FILE
.
force
.
forcelog
m.
help [h ?]
svn.
ignoreancestry
.
--ignore-externals
.
incremental
, .
--limit LIM
LIM.
message (m) MSG
MSG.
--native-eol EOL
svn:eol-style = 'native'
EOL ('LF', 'CR', 'CRLF').
2

--new ARG
ARG .
noauthcache
.
noautoprops
.
nodiffdeleted
.
noignore
, (svn:ignore).
noninteractive
.
nonrecursive [N]
.
noticeancestry
.
--no-unlock
.
old ARG
ARG .
password PASS
PASS .
quiet [q]
.
recursive [R]
.
relocate FROM TO [PATH...]
FROM TO (URL)
(switch) .
revision [r] REV[:REV2]
REV :
NUMBER
;
{'DATE'}
'YYYY-MM-DD HH:MM:SS';
'HEAD'
;
'BASE'
;
'COMMITTED' / BASE;
'PREV'
COMMITTED.
revprop
(r REV), .
showupdates [u]

.
stoponcopy

.
strict
.
--summarize
.
targets FILE
FILE.
username NAME
NAME .
verbose [v]
.
version
.
xml
XML.

() svnadmin:
crashtest
.
create .
deltify
.
dump
stdout.
help
.
hotcopy .
list-dblogs
(
Berkeley DB).
listunuseddblogs

( Berkeley DB).
load
stdin.
lslocks .
lstxns .
recover (
Berkeley DB).
rmlocks (LOCKED_PATH).
rmtxns .
setlog .
verify .
(, ) svnadmin:
--bdb-log-keep
- (Berkeley DB).
--bdb-txn-nosync
fsync commit- (Berkeley DB).
bypasshooks
(hook) .
--clean-logs
(Berkeley DB).
configdir DIR
DIR.
copies
.
--deltas
.
--force-uuid
UUID , .
--fs-type ARG
: 'fsfs' ( ) 'bdb'.
--ignore-uuid
UUID .
incremental
.
--parent-dir DIR
DIR .
--pre-1.4-compatible
, .
quiet [q]
.
revision [r] REV[:REV2]
REV REV:REV2.
--use-post-commit-hook
post-commit hook .
--use-pre-commit-hook
pre-commit hook .
--wait
, ,
.
4

() svnlook:
author .
cat
.
changed , .
date
.
diff
.
dirschanged
, .
help
.
history .
info
, , .
lock
.
log
.
propget .
proplist .
tree
.
uuid
.
youngest .
(, ) svnlook:
--copy-info
.
--diff-copy-from
.
--full-paths
.
--no-diff-added
.
--no-diff-deleted
.
--revprop
( -r -t).
revision [r] REV[:REV2]
REV ( REV:REV2).
--show-ids

--transaction [-t] TID
TID.
--verbose [-v]
.
:
A
(Added), .
B
(Broken) (WC).
C
(Conict) .
D
(Deleted), .
G
(merGed) .
I
(Ignored) svn:ignore.
K
(locKed) .
L
(Locked).
M
(Modified).
O
(lOcked) .
R
(Replaced).
S
(Switched).
T
WC , (sTolen) .
U
(Updated).
X
(eXternal) .
*
.
?
.
!
( svn).
~
(, , ) .
+
.
5

() :
svn:eol-style
:
native, CR, LF, CRLF.
svn:executable
( ).
svn:externals
-.
svn:ignore
, .
svn:keywords
- :
$Author$ ;
$Date$ ;
$Rev$ ;
$URL$ URL ;
$Id$ .
svn:mime-type
MIME- .
svn:needs-lock
, .
svn:special
, .
() (--revprop):
svn:author
.
svn:date
.
svn:log
.
:
~/.subversion/config:
[helpers]
editorcmd = /opt/kde3/bin/kate
[miscellany]
logencoding = utf8
enableautoprops = yes
global-ignores = .*~ *~ *.bak
[autoprops]
*.sh = svn:executable
*.bat = svn:eolstyle=CRLF
*.rb = svn:eolstyle=native;svn:keywords=Id
*.odt = svn:needs-lock
(hooks):
pre-commit
pre-lock
pre-revprop-change
pre-unlock
post-commit
post-lock
post-revprop-change
post-unlock
start-commit

:
http://subversion.tigris.org/
Subversion.
http://www.subversionary.org/
Subversion.
http://tortoisesvn.tigris.org/
Windows.
http://svnbook.red-bean.com/index.ru.html
.
http://www.informit.com/content/images/0131855182/downloads/Nagel_boo
k.pdf
.

2008, Mikhail Shokhirev (a.k.a Mike Shock)


http://www.shokhirev.com/mikhail/svn/
6