SVN Pamatkomandas

Kā: How to

7 Dec 2009

Šeit būs pašas nepieciešamākās lietas, kas nepieciešamas, lai lietotu Subversion bez jebkāda grafiskā klienta.

Getting Help

svn help apakškomandu saraksts
svn help subcommand apakškomandas palīdzība

Working Copies

svn checkout [flags] URL dest izveidot jaunu darba direktoriju
-r N izveidot atkārībā no uzdotās revīzijas

svn update [flags] [targets. . . ] iegūt jaunākos datus
-r N iegūt atkārībā no uzdotās revīzijas

svn commit [flags] [targets. . . ] ievietot lokālās izmaiņas repozitorijā
-m message Pievienot izmaiņu aprakstu
-F logfile Ievietot aprakstu failā

svn add [flags][ targets. . .] Pievienot darba direktorijai

svn rm [flags] paths | URLs. . . Izmest no darba direktorijas

svn import path URL Imports uz darba direktoriju

Working Copy Maintenance

svn status [flags] [targets. . . ] recursively show local changes in targets
-v show verbose information
-u show out-of-dateness information from repository

svn info [targets. . . ] show tracked information on targets

svn revert [targets. . . ] revert targets to “pristine” state

svn resolved [targets. . . ] removes conflict files associated with conflicted targets

svn cleanup [targets. . . ] unlock and resume unfinished operations on targets

Metadata

svn proplist [flags] targets. . . view property names attached to targets
-v show property values as well

svn propget propname targets. . . print value of propname attached to targets

svn propset propname propval targets. . . set propname to propval on targets
-F file take property value from file

svn propdel propname targets. . . remove propname from targets

svn propedit propname targets. . . edit value of propname attached to targets

Examining History

svn diff [flags] [target. . . ] show local changes made in target
-r N compare with revision N of target
-r N:M compare revisions N and M of target

svn diff URL1@N URL2@M compare two server paths at revisions N and M

svn log [flags] targets show log entries for targets
-r N[:M] show log entry for revision N or range N:M

Branches and Tags

svn cp SRC DST copy a working-copy path (or URL) to another working-copy path (or URL)
WC => WC copy and schedule for addition (with history)
WC => URL immediately commit a copy of WC to URL
URL => WC check out URL into WC, schedule for addition
URL => URL complete server-side copy; used to branch and tag
svn mv SRC DST move a path within a working-copy or repository.
WC => WC move and schedule for addition (with history)
URL => URL complete server-side rename.
svn switch target URL transform working copy target into URL; used to ’move’ to a tag or branch location
svn merge path1@N path2@M wcpath compare wcpaths (or URLs) path1 and path2, and merge differences into wcpath
svn mkdir target immediately create working-copy or URL directory target

File Status Flags

U filename item (U)pdated to repository version
G filename item’s local changes were mer(G)ed with repository changes
C filename item’s local changes (C)onflicted with repository changes
D filename item (D)eleted from working copy
A filename item (A)dded to working copy

Lejupielādēt: SVN Quick Reference (149)

Komentāru forma

Par šo blogu

Šis projekts ir izveidots tīri informatīvos nolūkos, lai esošajiem un jaunajiem projekta izstrādātājiem pastāstītu par SVN un tās priekšrocībām izmantojot tos savos projektos, jo kā pieredze rāda, ka daudziem tā joprojām ir sveša lieta.

  • sfx: Var gan ar sertifikātu gan bez, sīkāk paskaties šeit: http://www.alexfeigenson.com/2010/05/ldap [...]
  • Rihards: Un ja gribu, lai SVN izmantotu drošu LDAP kanālu (ldaps) ? Vai tad kaut kas būtiski mainās? [...]
  • SVN izmantojot `svnserve` | Subversion (SVN) Blogs: [...] protokolus (svn, svn+ssh). Par to kā uzstādīt Apache, lai piekļūtu repozitorijai biju apr [...]
  • TDI: kā uzlikt pašu svn var palasīt arī šeit: http://odo.lv/Recipes/Subversion [...]
  • Jorix: Nu ja godīgi bez šī nu nekā ... [...]