Source Code Control Systems




Páli Gábor svn anyaga itt elérhető




        Local -- sccs (1972) --- rcs (1982)
              ------- PVCS (1985)

Client-server -------- cvs (1990) ------------------------- subversion (2000)
              ---- ClearCase (1992) VisualSourceSafe (1994) perforce (1995)

  Distributed - GNU arch (2001) - Git, Mercurial, Bazaar (2005) - Fossil (2007)
              --- BitKeeper (1998)


 
Apache Subversion (svn)

 -- TortoiseSVN (subversion client)  VisualSVN, VsTortoise, AnkhSVN

https://pnyf.inf.elte.hu/repos/gsd/projeszk/



Branching

        ----------------------------------- 5.0  
       / branching              / merge
------------------------------------------- trunk (mainline)
           \ branching       / merge
            ------------------------------- 6.0



svn co https://pnyf.inf.elte.hu/repos/gsd/projeszk/2011




$ svn mkdir https://pnyf.inf.elte.hu/repos/gsd/projeszk/2011

Subversion will open your default text editor and ask you to enter
a log message. Enter an explanation of what you're doing, save, and
exit the editor.

Next, it's time to import project files. Change the current directory
to the project's directory, and run svn import:

$ cd /home/ayman/[...]/myproj
$ svn import file:///home/ayman/svn/myproj



$ svn checkout file:///home/ayman/svn

// work with files

$ svn commit



Check Status


$ svn status [filename]


Compare different Revisions

$ svn compare -r R1:R2 [filename]
(Replace R1 and R2 with actual revision numbers you want to compare)


Revert Local Edits

$ svn revert [filename]


Revert to Previous Revisions

$ svn update -r R
(Replace R with an actual revision number)

[filename] is optional; you can run the previous commands on the
current directory if you omit it.



   add
   blame (praise, annotate, ann)
   cat
   changelist (cl)
   checkout (co)
   cleanup
   commit (ci)
   copy (cp)
   delete (del, remove, rm)
   diff (di)
   export
   help (?, h)
   import
   info
   list (ls)
   lock
   log
   merge
   mergeinfo
   mkdir
   move (mv, rename, ren)
   propdel (pdel, pd)
   propedit (pedit, pe)
   propget (pget, pg)
   proplist (plist, pl)
   propset (pset, ps)
   resolve
   resolved
   revert
   status (stat, st)
   switch (sw)
   unlock
   update (up)