Subversion FAQ
-
Upload
ice-singapore -
Category
Technology
-
view
270 -
download
3
description
Transcript of Subversion FAQ
Subversion FAQ
Subversion FAQ
r33959Subversionhttp://code.google.com/p/svncndoc/rocksunakeybupt2004zhaozhijiaqifeng
Subversion?CollabNet
Subversion
Subversion/ Subversion ext2
Subversion
SubversionApacheApache
ApacheSubversion
Apache 1.xSubversionApache 2.0Subversion
SCMYX
Subversion
Subversionsymlinks
Subversion Logo
Subversion
CVSSubversion
SubversionHTTP
NFS/
Subversion
iplaceSubversion
Subversion/dump/load
SSPIWindows
.svnSVN
CVStrunk
$Revision$
SubversionCVS$Log$
'svn commit'
svn+ssh~/.subversion/auth/
svnservesvn+sshsvnserve
svn+ssh://
Berkeley DB
Windowssvnserve
BDBFSFSFSFSBDB
svn diff
Subversion("")
(DB_RUNRECOVERY)
"Cannot allocate memory"
svn
Subversion
svn update
Unrecognized URL scheme
URL
configuresubs-1.sed line 38: Unterminated `s' command
WindowsMSVC++6.0Subversion
file:URLWindowsfile: URL?
Subersion
VS.NET/ASP.NET".svn"
Windows XPSubversion
Subversion
svn revert
Apachemod_dav_svn"bad database version"db-3.Xdb-4.X
Red Hat 9 "Function not implemented"
Apachera_davSVN"(no author)"
Windows"Access Denied"
FreeBSD(svnadmin create)
WEB'svn checkout' "301 Moved Permanently"
HTTPDigest
AIXxlc
-Nsvn up subdir
Win32Apachemod_dav_svnmodulemod_dav_svn.so\Apache\modules
--diff-cmd-u--extensions
Subversion
"svn: bdb: call implies an access method which is inconsistent with previous calls"
2Gbsvnadmin
Berkeley DB 4.3
http://MacOS X 10.4 (Tiger)
SubversionDebian GNU/Linux
FreeBSDsvnserve3690
Subversion
svnserve
SubversionSSLSSL negotiation failed: SSL error: decryption failed or bad record mac
"This client is too old"
svn switch
Windows"The system cannot find the path specified"TortoiseSVN "This client is too old to work with working copy '...' "Subversion
64LinuxNeon"relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object"
ApacheCould not read response body: Secure connection truncated
RAM
Subversion
inlining obfuscatingSubversion
:
SubversionHTTP 'bikeshed'
"Subversion"
'baton'
'wedged'
CVSCVSCVS
SubversionCollabNet
Subversion/CollabNetApache/BSD-Debian Free Software GuidelinesCollabNet
Subversion
Subversion2000(self-hosting) "alpha"SubversionBug (bugfixing)(stabilization)1.01.0 Subversion1.0
Subversion/
1.x1.y
Hacker's Guide to Subversion
Subversion
Unix, Win32, BeOS, OS/2, MacOS X
SubversionANSI CAPRApache Portable Runtime SubversionAPRSubversion Berkeley DBWin9x(Win95/Win98/WinME)Berkeley DBWin9xFSFS1.1Win9x Win9x
SubversionAPRSubversionAPRWin95/Win98/WinMe
ext2
"Subversion"Subversion API()
Subversion
Subversion ApacheApache
Subversion
CVS
SubversionApacheApache
SubversionSubversionsvnserveCVSpservermod_dav_svnApachehttpd-2.0svnservemod_dav_svnWebDAVSubversion
ApacheSubversion
SubversionApache2svnserve
SubversionSubversion
Apache 1.xSubversionApache 2.0Subversion
svnserveSubversion
Apache serverWebDAVApache 2.080Apache1.0Apache2.0 Apachehttpd.confListen808080URL(http://svn.mydomain.com:8080/repos/blah/trunk/)
SCMYX
SCMSCMCVS
Subversion SubversionbranchestagsSubversion
r588r588588587588 587588
tags
Subversion
Subversion ArchBitkeeper
Subversion
SubversionNNNN-1
Nbug bug9238svn log -r9238Bugsvn diff -r9237:9238svn svn merge -r9237:9238 branchURL9238
CVS
http://subversion.tigris.org/project_status.html
Subversion
Subversion 1.1svn add
'svn:special'svn unixWin32win32
Subversion Logo
Subversion logoSubversion www
EPS ,Adobe
SubversionSubversion
The Subversion ([email protected])
Subversion
IRCirc.freenode.net#svn
svnforum.org
Subversion
Subversion $ svn co http://svn.collab.net/repos/svn/trunk subversionSubversionsubersion
http://svn.collab.net/repos/svn/trunk/READMEIV
Subversion
CVSSubversion
cvs2svnhttp://cvs2svn.tigris.org/ ( )cvs2svn
VCPChia-liang KaoCPAN
Lev Serebryakovrefinecvs http://lev.serebryakov.spb.ru/refinecvs/
Subversion
,?
Subversion"servers"Linux Unix~/.subversionWindows"%APPDATA%\Subversion""echo %APPDATA%"
svnsvn
SubversionHTTPPROPFIND, REPORT, MERGE, MKACTIVITY, CHECKOUTSquid # TAG: extension_methods
# Squid only knows about standardized HTTP request methods. # You can add up to 20 additional "extension" methods here. # #Default: # none extension_methods REPORT MERGE MKACTIVITY CHECKOUT (Squid 2.4PROPFIND.)
"SubversionHTTP"HTTP
Subversion,checkout Subversion8081svn.collab.net svn checkout http://svn.collab.net:81/repos/svn/trunk subversionSSLcheckoutSSL svn checkout https://svn.collab.net/repos/svn/trunk subversionsvnssl./configure--with-sslsvn --versionsvn'https'
SubversionHTTP
svnserveSVN6
Apache3690SSH
CVSSSHCVSra_svn SubversionSubversionURL"svn+ssh" $ svn checkout svn+ssh://your.domain.com/full/path/to/repositorySSH'svnserve'ID
SSHra_davSSHSubversionSSHSubversion
SubversionHTTPSubversionSSHSubversion
10.1.1.50svn-server.example.comSubversion ra_davSSHssh-server.example.comhttp://svn- server.example.com/repos/oursSubversion
ssh % ssh -L 8888:svn-server.example.com:80 [email protected]
% svn checkout http://localhost:8888/repos/ours svn-server.example.comhttpdSubversionroot
Joe Orton MOVECOPY"ServerAlias localhost"SSH
http://www.onlamp.com/pub/a/onlamp/excerpt/ssh_11/index3.html
http://csociety.ecn.purdue.edu/~sigos/projects/ssh/forwarding/
TTSSH: A Win32 SSH client capable of port forwarding
Subversion
$ svnadmin create /repo/svn
$ svn mkdir file:///repo/svn/projA
$ svn mkdir file:///repo/svn/projB
$ svn mkdir file:///repo/svn/projC $ mkdir /repo/svn
$ svnadmin create /repo/svn/projA
$ svnadmin create /repo/svn/projB
$ svnadmin create /repo/svn/projC ( Ben Collins-Sussman )
'svn cp/mv'
projB10 projBrapidsvn rapidsvnsvnsvn:-)
Apache
'svnadmin dump''svnadmin load'
Peter Davis CVSsvn
svnCVS
svn:externals
URLURL
miscellaneous utilitiesperlsvn-merge-repos.plpythonSvnDumpTool
NFS/
Berkeley DBSubversion 1.01.1 NFSBerkeley DBBerkeley DBSubversion
FSFSNFS
NFSNFSLinux NFSSubversionsubtree checkingNFS Howto Server Guideexports(5)
SMBSamba2.2.7a3.0.6Samba
Berkeley DBrepos/db/log.*Berkeley DBmore info
Berkeley DBBerkeley DB
svnadmincrob $ svnadmin list-unused-dblogs /repos
/repos/db/log.000003/repos/db/log.000004[...]
$ svnadmin list-unused-dblogs /repos | xargs rm# disk space reclaimed! Berkeley DBdb_archive $ db_archive -a -h /repos/db | xargs rm
# disk space reclaimed! svnadmin hotcopyhotbackup.py
Berkeley DB 4.2Subversionsvnadmin create--bdb-log-keepBerkeley DBDB_LOG_AUTOREMOVE
apache'svnserve -d'file:///URL'svnlook''svnadmin'
file:///svn+ssh://6
SELinux / Fedora Core 3+ / Red Hat Enterprise UnixSELinuxUnix
Fedora Core 3SELinuxApacheApacheSubversion ApacheApachechconchmodUnix $ chcon -R -h -t httpd_sys_content_t PATH_TO_REPOSITORY
Apachelibsvn_fsAPIBerkeley DB
HEAD- --
Berkeley DBFSFS
Subversionimmutable
svnadmin obliterateissue 516
svnadmin dumpsvndumpfiltersvnadmin loadSubversion
svn:logsvn:logSubversion
"pre-revprop-change"Subversion"pre-revprop-change"svn propeditsvn propset--revprop $ svn propedit -r N --revprop svn:log URL
$ svn propset -r N --revprop svn:log "new log message" URL NURLURL
svnadmin setlog $ svnadmin setlog REPOS_PATH -r N FILEREPOS_PATHNFILE"pre-revprop- change"--bypass-hooks
Subversion
Hacker's Guide to Subversion
dev[PATCH]
$ svn co http://svn.collab.net/repos/svn/trunk subversion
$ cd subversion/www
[ make changes to faq.html ]
$ svn diff faq.html > /tmp/foo
$ Mail -s "[PATCH] FAQ updates" < /tmp/foo Hacker's Guide to SubversionHack:)
iplaceSubversion
/etc # svn mkdir file:///root/svn-repository/etc \
-m "Make a directory in the repository to correspond to /etc" # cd /etc # svn checkout file:///root/svn-repository/etc . # svn add apache samba alsa X11 # svn commit -m "Initial version of my config files" svn checkout/etc/etcsvn add
svn importissue 1328
Subversion/dump/load
Subversion1.0SubversionXYY
1. svnserveApache
2. Xsvnadminsvnadmin dump /path/to/repository > dumpfile.txt
3. mv /path/to/repository /path/to/saved-old-repository 4. Subversion YYX
5. Ysvnadminsvnadmin create /path/to/repository
6. Ysvnadminsvnadmin load /path/to/repository < dumpfile.txt
7.
8. svnserveApache
Subversion
SubversionCHANGES/
SSPIWindows
TortoiseSVNWindowsSubversionhttp://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-serversetup.html#tsvn-serversetup-apache-5SSPI authentication
SSPIOfferBasic OnSSPISSPISubversionNeon - SubversionHTTP - mod_auth_sspiWindows
.svnSVN
".svn"WindowsASP.NETSVN_ASP_DOT_NET_HACK
Subversionsubversion/include/svn_wc.h #define SVN_WC_ADM_DIR_NAME ".svn" #define SVN_WC_ADM_DIR_NAME "SVN"
windows
svn mv file.java File.javawindowswindows SubversionSubversionURL URL
windowswindowssvn: Failed to add file 'File.java': object of the same name already exists)
svn mv svn://svnserver/path/to/file.java svn://svnserver/path/to/File.java svn update file.java
svn update file.javaFile.java svn update *
svn update pre-commitcheck-case-insensitive.plSubversioncontrib/hook-scripts
CVStrunk
/home/reposbarfoo
tags/branch_traces/tags # setup branch and tags
$ svn copy file:///home/repos/trunk \ file:///home/repos/branches/bar_branch \ -m "start of bar branch"$ svn copy file:///home/repos/branches/bar_branch \ file:///home/repos/tags/branch_traces/bar_last_merge \ -m "start"
# checkout branch working copy$ svn checkout file:///home/repos/branches/bar_branch wc$ cd wc
# edit foo.txt file and commit$ echo "some text" >>foo.txt$ svn commit -m "edited foo"
# switch to trunk and merge changes from branch$ svn switch file:///home/repos/trunk$ svn merge file:///home/repos/tags/branch_traces/bar_last_merge \ file:///home/repos/branches/bar_branch
# Now check the file content of 'foo.txt', it should contain the changes.
# commit the merge$ svn commit -m "Merge change X from bar_branch."
# finally, update the trace branch to reflect the new state of things$ svn delete -m "Remove old trace branch in preparation for refresh." \ file:///home/repos/tags/branch_traces/bar_last_merge$ svn copy file:///home/repos/branches/bar_branch \ file:///home/repos/tags/branch_traces/bar_last_merge \ -m "Reflect merge of change X." $Revision$
Subversion -
svnversionsvnversion --help
GNU makeMakefile ##
## To use this, in yourfile.c do something like this:## printf("this program was compiled from SVN revision %s\n",SVN_REV);##
SVNDEF := -D'SVN_REV="$(shell svnversion -n .)"'CFLAGS := $(SVNDEF) ... continue with your other flags ... GNUmake
##
## on every build, record the working copy revision string##svn_version.c: FORCE echo -n 'const char* svn_version(void) { const char* SVN_Version = "' \ > svn_version.c svnversion -n . >> svn_version.c echo '"; return SVN_Version; }' >> svn_version.c
#### Then any executable that links in svn_version.o will be able## to call the function svn_version() to get a string that## describes exactly what revision was built.## WindowsSubWCRev.exeTortoiseSVN$WCREV$
SubversionCVS$Log$
CVS$Log$'svn log your-file-name''svn log url-to-your-file'$Log$ $Log$ -- -- Subversionsvn:log$Log:$$Log:$
'svn commit'
file.tmpl
svn checkout svn:ignoresvn status?
svn+ssh~/.subversion/auth/
sshSubversionSubversion
OpenSSHssh-keygenssh-agentssh-addssh-agentkeychainWindowsPuTTYsshOpenSSHpageantPuTTYgen
ssh-agentGooglessh-agent http://mah.everybody.org/docs/ssh
http://kimmo.suominen.com/docs/ssh/ svnservesvn+sshsvnserve
OpenSSHssh
.bash_profileSubversionsshPATHsvnservessh
svn+sshSubversionssh~/.ssh/id_dsa.subversion~/.ssh/authorized_keysssh-rsassh-dss
ssh-dss AAAAB3Nblahblahblahblah
command="/opt/subversion/bin/svnserve -t" ssh-dss AAAAB3Nblahblahblahblah
/opt/subversion/bin/svnserveSubversion-r
command=sshdsvnservesshd(8)manAUTHORIZED_KEYS FILE FORMAT
SubversionSVN_SSHBourne Again shell SVN_SSH="ssh -i $HOME/.ssh/id_dsa.subversion"
export SVN_SSH
svn+ssh://
~/.ssh/authorized_keyssvnserve
Subversionsvn:eol-stylesvn:keywordsSubversionCVS
svn propsetsvn commit
svn addauto-props
pre-commithttp://svn.collab.net/repos/svn/trunk/contrib/hook-scripts/check-mime-type.plsvn:eol-style
issue 1974
SubversionSVN_EDITOR.
SVN_EDITOR
WindowsC:\Program Files\Posix Tools\bin\vi set SVN_EDITOR="C:\Program Files\Posix Tools\bin\vi"windowsset
UNIXshellbash shell SVN_EDITOR='"/usr/local/more editors/bin/xemacs"'
export SVN_EDITOR SVN_EDITOR-nx -r
Windows set SVN_EDITOR="C:\Program Files\Posix Tools\bin\vi" -nx -rUNIX/bash SVN_EDITOR='"/usr/local/more editors/bin/xemacs" -nx -r'
export SVN_EDITOR SVN_EDITORSubversionSubversionEDITORSubversionSVN_EDITOR
Berkeley DB
Berkeley DBBerkeley DB
db/log.*1216104GNU odod -j12 -N8 -tx4 log.Mac OS X hexdumphexdump -s12 -n8 -x log.0x00040988Berkeley DB - Berkeley DB
Berkeley DB
5 (0x00000005) 4.0
7 (0x00000007) 4.1
8 (0x00000008) 4.2
10 (0x0000000a) 4.3
11 (0x0000000b) 4.4
12 (0x0000000c) 4.5
13 (0x0000000d) 4.6
post-commit5post-commitsvn update
svnserveapachepost-commit svnserveapache --
joe~/public_html/+sUnix+sC #include
#include #include int main(void){ execl("/usr/local/bin/svn", "svn", "update", "/home/joe/public_html/", (const char *) NULL); return(EXIT_FAILURE);} ... chmod +sjoepost-commit
?
apache.svn/httpd.conf # Disallow browsing of Subversion working copy administrative dirs.
Order deny,allow Deny from all
Subversion
svn export
(1) (2)Subversion SubversionUI
svn statussvn rmsvn addsvn mvsvn cp
SubversionSubversion apacheCSVNAutoversioning
Windowssvnserve
1.4.0
1.4.0svnservewindowsservice wrappers
SVNService Magnus Norddahl
SrvAny
TortoiseSVNsvnserve
BDBFSFSFSFSBDB
1. dump/load
2.
3.
/svn/myreposBDBFSFS
1.
2. fsfs1.2)svnadmin create /svn/myreposfsfs --fs-type fsfs
3. /svn/myrepos/svn/myreposfsfssvnadmin dump /svn/myrepos -q | svnadmin load /svn/myreposfsfsWindows
4. /svn/myrepos/hooks/svn/myreposfsfs/hooksSubversion
5. /svn/myreposfsfs/hookssvnadmin create/svn/myrepos/hooks
6. /svn/myrepos/conf/svn/myreposfsfs/conf
7. /svn/myrepos/svn/myreposbdb/svn/myreposfsfs/svn/myreposBDB
8.
FSFSBDBsvnadmin createBDB
SubversionSubversionSubversion 1024015%ASCIISubversion
Subversionsvn:mime-typeapplication/octet-streamauto-propssvn propset)
Subversion
svn:mime-type
svn:mime-typetext/
svn:mime-typeimage/x-xbitmap
svn:mime-typeimage/x-xpixmap
Subversion
svn updatesvn merge
svn diff
svn blame
Subversionsvn:keywordssvn:eol-styleSubversion
Subversiondiffingsvn diffdiffing
svn diff
svn diff
10 svn log -vq -r10
Unix svn log -vq -r123:456 | egrep '^ {3}[ADMR] ' | cut -c6- | sort | uniq 1.4svn diff--summarize
wildcards
svn mv svn://server/trunk/stuff/* svn://server/trunk/some-other-dir svn: Path 'svn://server/trunk/stuff/*' does not exist in revision 123...
Subversionmv...Subversionshell*
shellbash for i in stuff/*; do svn mv $i some-other-dir; done
svn ci -m "moved all the stuff into some other dir" svn mv s=svn://server/trunk/stuff/
svn ls "$s" | \ while read f do svn mv "$s/$f" svn://server/trunk/some-other-dir -m "Moved just one file" done
svnmuccmuccSubversionSubversionSubversion 1.4/contrib/client-side/mucc/mucc.c1.5/contrib/client-side/svnmucc/svnmucc.c
1.5Subversioncpmv
Subversion("")
SubversionSubversionSubversion
SubversionPiston
svn_load_dirs.plJon StevensSubversionSubversion
(DB_RUNRECOVERY)
Berkeley DB
"svnadmin recover"bdb-recoverycheckoutupdate
mod_dav_svnsvnlooksvnadmin file://Berkeley DBBerkekey DBControl-C, Berkeley DB
(Apache, 'svn') rootrootApache umask
: svnadmin recover /path/to/repos, db
"svnadmin recover" Repository lock acquired.
Please wait; recovering the repository may take some time... svnadmin: DB_RUNRECOVERY: Fatal error, run database recovery svnadmin: bdb: Recovery function for LSN 175 7066018 failed on backward pass svnadmin: bdb: PANIC: No such file or directory svnadmin: bdb: PANIC: fatal region error detected; run recovery Repository lock acquired.
Please wait; recovering the repository may take some time... svn: DB_RUNRECOVERY: Fatal error, run database recovery svn: bdb: DB_ENV->log_flush: LSN of 115/802071 past current end-of-log of 115/731460 svn: bdb: Database environment corrupt; the wrong log files may have been removed or incompatible database files imported from another environment [...] svn: bdb: changes: unable to flush page: 0 svn: bdb: txn_checkpoint: failed to flush the buffer cache Invalid argument svn: bdb: PANIC: Invalid argument svn: bdb: PANIC: fatal region error detected; run recovery svn: bdb: PANIC: fatal region error detected; run recovery [...] Berkeley DBdb_recover db_recover.Berkeley DB"bin/", Berkeley DB, /usr/local/BerkeleyDB.4.2/bin/db_recover;Berkeley DB /usr/bin/db_recover. Berkeley DB,Berkeley DB
db_recover"-c" "". "-v", "-h" db_recover -c -v -h /path/to/repos/db svnserve
"Cannot allocate memory"
http://"Cannot allocate memory"httpd [Wed Apr 07 04:26:10 2004] [error] [client 212.151.130.227] (20014)
Error string not specified yet: Berkeley DB error while opening 'strings' table for filesystem /usr/local/svn/repositories/svn/db: Cannot allocate memory[Wed Apr 07 04:26:10 2004] [error] [client 212.151.130.227] Could not fetch resource information. [500, #0][Wed Apr 07 04:26:10 2004] [error] [client 212.151.130.227] Could not open the requested SVN filesystem [500, #160029] [Wed Apr 07 04:26:10 2004] [error] [client 212.151.130.227] (17) File exists: Could not open the requested SVN filesystem [500, #160029] Berkeley DBFSFSdb/DB_CONFIGset_lk_max_locksset_lk_max_lockersset_lk_max_objectsDB_CONFIG
svn
Subversionsvc Control-C'svn status''L'svn svn cleanup working-copySubversion
"svn log -rHEAD"svn revertsvn updatesvn updaterevert
Subversion
'svn update'
'svn update'
svn update
svn addsvn diffsvn updatesvnFailed to add file my.new.fileobject of the same name already existsmy.new.file
1. svn revert
2.
3. svn update
Subversioncheck out"Unrecognized URL scheme."?
Subversionra_localra_davWebDAV ra_svnsvnserverSubversionURL scheme`file://'URLra_local`http://'URLra_dav
Subversion'make install''make install'SubversionLinux/etc /ld.so.confldconfigrootLD_LIBRARY_PATH
URL
FAQ
`configure'subs-1.sed line 38: Unterminated `s' command
/usr/local/bin/apr-config/usr/local/bin/apu-configapr/apr-util/
WindowsMSVC++6.0Subversion
platform SDKVC++ 6.0SDK
file:URLWindows?
svn import file:///d:/some/path/to/repos/on/d/driveSubversionURL
VS.NET/ASP.NET".svn"?
VS.NetASP.NetWebDAVIIS"." ".svn""unable to read project information"
SVN_ASP_DOT_NET_HACK Windows clients"_svn"Subversion 1.3
Subersion
$ mkdir test
$ touch test/testfile $ svn import test file:///var/svn/test -m "Initial import" Adding test/testfile Transmitting file data . Committed revision 1. $ svn import http://svn.sabi.net/test testfile -m "import" nicholas's password: xxxxxxx
svn_error: #21110 :
The specified activity does not exist. httpdREPOS/dav/Apachedav/db/
Windows XPSubversion
Windows XPSP1
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q317949
Subversion
hacking.html#net-trace
svn revert
Subversion
svn revert.--recursive (-R)
Apachemod_dav_svn"bad database version"db-3.Xdb-4.X
apr-utilDB-3svnDB-4DBmod_dav_svnApaceapr-utilDB-3
apr-utilDB-4apr-utilapache--with-dbm=db4 --with-berkeley-db=/the/db/prefix
Red Hat 9"Function not implemented"
SubversionSubversion
Red Hat 9FedoraBerkeley DBNPTLPosix
Red HatNPTL svn: Berkeley DB error
svn: Berkeley DB error while creating environment for filesystem tester/db:Function not implemented
Berkeley DB
Red Hat 9
NPTL
NPTL2.5.x
LD_ASSUME_KERNEL2.2.5SubversionApacheRed Hat 9 WineWinex
NPTLBerkeley DBNPTLglibci686http://svn.haxx.se/users/archive-2004-03/0488.shtml
Apachera_davSVN(no author)?
ApacheApachesvnSubversion $ svn log
------------------------------------------------------------------------rev 24: (no author) | 2003-07-29 19:28:35 +0200 (Tue, 29 Jul 2003) ApacheSubversion"Networking a Repository"
Windows"Access Denied"
windowsCOM+SubversionBug7598
FreeBSDsvnadmin create
random(4)rndcontrol(8)
WEB'svn checkout' "301 Moved Permanently"
httpd.confSubversion
/www/foo/www /www/foo/barapache/foo/bar mod_dav_svn/www/foo/barApache
URLWEB /var/wwwSubversion/home/svn/repoApacheURLhttp://localhost/myrepo/var/wwwmyrepo301
HTTPHTTP Digest auth
Apachebug2.0.48http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25040http://subversion.tigris.org/issues/show_bug.cgi?id=1608 bug
AIXxls
CFLAGS-qlanglvl=extendedxls http://svn.haxx.se/dev/archive-2004-01/0922.shtml
-Nsvn up subdir
issue 695. svn checkout -NCVSSubversion
win32Apachemod_dav_svnmod_dav_svn.so \Apache\modules
Apachemod_dav_svn.soApachepathlibdb4*.dllintl3_svn.dll libeay32.dllssleay32.dll\Apache\bin\Apache\modulesSubversion
Dependency Walkermod_dav_svn.so
?
Subversionunix$Pathwindows%Path%
LinuxUnix
1. "su""sudo"Apachehttpd www-datasvnservesvn
2. env $ env - ./post-commit /var/lib/svn-repos 1234 env
3.
--diff-cmd-u--extensions
diffSubversion--diff-cmd --extensions ----extensions--extensions-u Subversion-L"project_issues.html (revision 11209))-L .svn/text-base/project_issues.html.svn-base.svn/tmp /project_issues.html.tmp
diffdiff
Subversiondiff
issue #2044.
Subversion
windows 2000svn 1.2windows API
Mac OS X, svn 1.4keychainsvn
Subversion 1.6UNIX/LinuxGNOME KeyringKWallet
Subversion 1.5UNIX/Linux~/.subversion/auth/~/.subversion/auth/700
svn 1.0store-auth-creds = nosvn 1.1store-passwords = no' Subversion
CVS.cvspass rot13 Subversiondev@list
"svn: bdb: call implies an access method which is inconsistent with previous calls"
Berkeley DB 4.14.04.24.1
BerkeleySubversiondatabase format fieldcopiesbtreerecno Subversion
tarzip
db
rm __db.* log.*
db_dump -p -r copies > copies.dump
copies.dumptype=recno to type=btreere_len=
rm copies
db_load copies < copies.dump
svnadmin dump .. > ../../my-recovered.svndump
dump file
2Gbsvnadmin
APR0.9Apache 2.0.xSubversion 1.x2GbAPR 0.9.5Apache 2.0.50Linux
svn checkout7akar7foo.c
8
foo.c87
mixed revision87svn update $ svn -v status
7 7 nesscg . 8 8 nesscg foo.c $ svn log.78
1. svn log -rHEAD
2. svn log URLURL
3. svn log foo.c
4. 8svn log
Berkeley DB 4.3
Berkeley DB 4.3svnadmin recoverBerkeley DBBerkeley DB 4.3
Berkeley DB 4.3
Apachesvnservesvnlooksvnadminfile://
svnadminBerkeley DB
a. svnadmin recover /path/to/repository
b.
c. svnadmin list-unused-dblogs /path/to/repeository
d. db__db.00*
Berkeley DB 4.3
http://MacOS X 10.4 (Tiger)
Apache 2.0.x
APR 0.9.6 bugTiger64KB svn: Invalid diff stream: [tgt] insn 1 starts beyond the target view position svn: Unexpected end of svndiff input svn: REPORT request failed on '/path/to/repository'
svn: REPORT of '/path/to/repository/!svn/vcc/default': Chunk delimiter was invalid Apacheerror_log [error] Provider encountered an error while streaming a REPORT response. [500, #0]
[error] A failure occurred while driving the update report editor [500, #190004] bugFile://Apachebug
APR 1.2.0+
ApacheSubversionApache setenv ac_cv_func_poll noBourne shell ac_cv_func_poll=no; export ac_cv_func_pollAPR / APRUTILApacheAPR
SubversionDebian GNU/Linux
Subversion /usr/local/apache2/lib/libaprutil-0.so.0: undefined reference to `db_create'
/usr/local/apache2/lib/libaprutil-0.so.0: undefined reference to `db_strerror' DebianlibtoolDebian SubversionFAQhttp://subversion.tigris.org/servlets/ReadMsg?list=dev&msgNo=112617
20051115Debian GNU/Linuxtestinglibtool 1.5.20./configure && make && sudo make installmake clean./autogen.sh, ./configure,make
http://svn.haxx.se/dev/archive-2003-01/1125.shtml
FreeBSDsvnserve3690
--listen-host=0.0.0.0svnserveShort
FreeBSDtcp6tcp4
Subversion
.svn svn copy
.svnaddUnix find dir -type d -name .svn -exec rm -rf {} \;svn copy
svnserve
APR/dev/randomSubversionAPRAPR --with-devrandom=/dev/urandom APR
SubversionSSLSSL negotiation failed: SSL error: decryption failed or bad record mac
OpenSSL 0.9.8
"This client is too old"
1.4SubversionSubclipseSubclipse svn: This client is too old to work with working copy'/path/to/your/working/copy'; please get a newer Subversion client SubversionSubclipse Subclipse1.4 1.4 Subversion 1.5 FAQ
svn switch
svn switchswitchswitch
svnsvn cleanupissue #2505
swich
switchsvn switch3
1.
# Check and delete svn unversioned files: svn status --no-ignore | grep '^[I?]' | sed 's/^[I?]//'svn status --no-ignore | grep '^[I?]' | sed 's/^[I?]//' | xargs rm -rf
2. switch
3. switchswitchswitch svn cleanup
issue 2505 svn
svn switchswich
1.
wc/$ svn switch $SVNROOT/$project/branches/$ticket-xxxsvn: Won't delete locally modified directory ''svn: Left locally modified or unversioned files
2.
wc/$ svn switch $SVNROOT/$project/branches/$ticket-xxxsvn: Won't delete locally modified directory ''svn: Left locally modified or unversioned files
cleanupsvn switchsvn cleanup
wc/$ svn switch $SVNROOT/$project/branches/$ticket-xxxsvn: Directory '/.svn' containing working copy admin area is missingwc/$ svn cleanupsvn: '' is not a working copy directorywc/$ svn switch $SVNROOT/$project/branches/$ticket-xxxsvn: Working copy '.' lockedsvn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for details)
TortoiseSVNcleanup
Subversion reported an error while doing a cleanup!/ is not a working copy directory
svn switchsvn statusS~ L
wc/$ svn status ! .! S ~ /
Windows"The system cannot find the path specified"TortoiseSVN
windowsAPIunicodewindows SubversionApache Portable RuntimeAPRC:\WorkingCopy\file.txtwindows API\\?\C:\WorkingCopy\file.txt
Subversion
C:\> svn up WorkingCopy
C:\> cd C:\WorkingCopyC:\WorkingCopy> svn up
C:\> svn update C:\WorkingCopy
windows
TortoiseSVN TortoiseSVNSubversionAPI
SubversionSubversion
"This client is too old to work with working copy '...' "Subversion
Subversion1.4.41.5.01.4.4
1.5.0keep-localvariable-depth1.4.4
1.5.01.4.41.4.4issue #2961
http://svn.collab.net/repos/svn/trunk/tools/client-side/change-svn-wc-format.py
--helpSubversionFAQ
64LinuxNeon"relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object"
NeonSubversionHTTPAMD 64
subversion-1.4.6/neon/src/.libs/libneon.a(ne_request.o): relocation R_X86_64_32against `a local symbol' can not be used when making a shared object;recompile with -fPIC/home/jrandom/subversion/subversion-1.4.6/neon/src/.libs/libneon.a: could notread symbols: Bad value
Subversion--enable-shared
ApacheCould not read response body: Secure connection truncated
ApacheSubversionSSLApache
Subversion Apache Apache
ApacheApacheTimeout
RAM
SubversionRAMLinuxRAM
mount -t tmpfs tmpfs /path/to/src/subversion/tests/cmdline/svn-test-work -o uid=$USER,mode=770,size=32m
/etc/fstab
tmpfs /path/to/src/svn/subversion/tests/cmdline/svn-test-work tmpfs defaults,user,noauto,exec,size=32m
RAM700MBIO
make check CLEANUP=true
http://svn.haxx.se/dev/archive-2003-02/0068.shtml RAM
Subversion
unix-ymake installSubversionlibtool-generated
subversion$ gdb subversion/svn/svn
... "/path/to/subversion/subversion/svn/svn": not in executable format: File format not recognized
--disable-shared
shellgdbexec "$progdir/$progname"exec gdb --args "$progdir/$progname"
libtool-generatedshell
inlining obfuscatingSubversion
gcc
unix-y systemsmake
subversion$ make EXTRA_CFLAGS=-O0
O
subversion$ ./configure --enable-debug
Subversionmakeconfigure
SubversionHTTP
Subversion WebDAV/DeltaV mod_dav_svn server OPTIONS, PROPFIND, GET, REPORT,
MKACTIVITY, PROPPATCH, PUT, CHECKOUT, MKCOL, MOVE, COPY, DELETE, LOCK, UNLOCK, MERGE http://svn.collab.net/repos/svn/trunk/notes/webdav-protocol 'bikeshed'
Poul-Henning Kampfreebsd-hackershttp://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/misc.html#BIKESHED-PAINTING.
"Subversion"
Jim BlandySubversionSubversion Subversion
'baton'
Subversionbatonvoid *APIvoid *ctxvoid *userdataSubversionbatons
'wedged'
Subversion this
Jargon Filewedged