svn

Information about svn

Published on November 29, 2007

Author: Goldye

Source: authorstream.com

Content

Electronic Submission of Student Assignments Via Subversion:  Electronic Submission of Student Assignments Via Subversion Subversion—a Version Control System widely used source code control system. usually for large software projects programmers "check out" and "check in." all changes recorded Software developers generally submit their work to a source code control system—why not CS students? Convincing you …:  Convincing you … Students should be familiar with source code control. It’s awkward enough that students should use it more than once. Useful in group projects. Positions students to work on open source software. Slide3:  Alternatives: BlackBoard Catalyst Easier, but still some effort to learn. Why not learn something you’re likely to see again. Problems: Server setup – Student setup – Teacher setup – To submit assignment::  To submit assignment: check in to your SVN repository, located in your account on cssgate. Name the repository after the course number. So if this is TCSS430, name the repository "svn430". I'll collect assignments by checking them out of your repository. I can't access any of your other files name "directories" as specified in lab directions. For instance the first lab should go in "svnlab" only submit what you need to! (no .class files, etc.) Use any Subversion client you like:  Use any Subversion client you like Command line. TortoiseSVN Eclipse (Subclipse plugin) many more on Subversion website. Repositories and Sandboxes:  Repositories and Sandboxes From “Essential CVS” by Jennifer Vesperman, O’Reilly Press could be on same machine The command line is your friend:  The command line is your friend It never changes (well almost never). 10 years from now the commands will still work (20 years from now? … get real). GUI clients are just wrappers around the command line programs. Typical Usage Scenario:  Typical Usage Scenario svn checkout … svn update svn update svn commit Logging on to cssgate:  Logging on to cssgate With SSH Secure Shell At home, get from: http://www.washington.edu/computing/software/uwick/contents.html Creating a repository:  Creating a repository Must be on the repository machine svnadmin create svn430 Now you can be anywhere, but this example is still on the local machine svn mkdir file:///home/INSTTECH/dmclane/svn430/svnlab\ -m "a comment" svn checkout file:///.../svnlab svnlabsandbox cd svnlabsandbox textpad hello.cpp svn add hello.cpp svn commit –m "…" cssgate should look like this:  cssgate should look like this myname |--win |--svn430 | |… maybe other stuff Initially Overview is over, now the details. initialize the repository:  initialize the repository myname |--win |--svn430 |--conf/ |--dav/ |--db/ |--format |--hooks/ |--locks/ |--README.txt svnadmin create svn430 why? initialize once don't touch anything in this directory don't put anything in this directory Yes this part is way different from CVS You are in this directory Did it work?:  Did it work? To look at everything in your repository, from command line on the repository machine (cssgate). svnlook tree svn430 [[email protected] ~]$ ls 372 locktest.py plan9port.tgz svn430 431 mail ploneup.py TCPServer.class … [[email protected]~]$ls svn tcss430 [[email protected] ~]$ svnlook tree svn/tcss430 / test2/ zzz.txt svnlab/ test.txt [[email protected] ~]$ Checking out, still on local machine:  Checking out, still on local machine svn checkout file:///home/INSTTECH/yourname/svn430/svnlab mylab UNIX is case sensitive! note: file:///home/INSTTECH/yourname/svn430/svnlab not a real directory Remotely:  Remotely The same, except change file:///home/INSTTECH/yourname/svn430/svnlab to svn+ssh://[email protected]/home/ INSTTECH/yourname/svn430/svnlab All one thing. You need svn software, probably from cygwin. Slide17:  Subversion organizes files by URL not project, although it's sometimes useful to think of it that way not directory, although it's sometimes useful to think of it that way How do I start all over again?:  How do I start all over again?     * Log onto cssgate.     * go into your svn directory cd svn430     * delete everything in there. rm -rf * * you need to "svnadmin create" again. add, delete:  add, delete import is for initially making the project, after that use add you are in a sandbox svn add newfile.txt svn commit –m "an informative comment" Opps, I checked in a .class file. How do I get rid of it? svn delete … svn commit … Another to look at your repository:  Another to look at your repository svn -R URL locally: svn -R list file:///home/INSTTECH/dmclane/svn430 remotely: svn -R list svn+ssh://[email protected]/home/INSTTECH/dmclane/svn430 How do I delete the whole assignment/URL/project/directory?:  How do I delete the whole assignment/URL/project/directory? [[email protected] testdir]$ svn checkout file:///home/INSTTECH/dmclane/svn430 sandbox A sandbox/svnlab A sandbox/svnlab/Hello.java Checked out revision 1. [[email protected] testdir]$ cd sandbox [[email protected] sandbox]$ ls svnlab [[email protected] sandbox]$ ls -a . .. .svn svnlab [[email protected] sandbox]$ svn delete svnlab D svnlab/Hello.java D svnlab [[email protected] sandbox]$ svn commit -m "deleting svnlab" Deleting svnlab Committed revision 2. checkout the whole repository Bibliography:  Bibliography Home page: http://subversion.tigris.org/. Has links to documentation, clients, … Motivation: http://www.alistapart.com/articles/revisioncontrol. TortoiseSVN:  TortoiseSVN http://tortoisesvn.tigris.org/ Integrates with Windows. Some claim this is the easiest client. new stuff when you right click Subclipse:  Subclipse An Eclipse plugin. http://subclipse.tigris.org/ Installation instructions are pretty good. Consensus is: this is hard to get working. Repository Exploration:  Repository Exploration Window Open Perspective Other SVN Repository Exploring Right click Adding Repository:  Adding Repository You'll put your account name, not "dmclane" It finds everything!:  It finds everything! Now, to checkout:  Now, to checkout Right click on svnlab. From the Subversion FAQ:  From the Subversion FAQ How can I do an in-place 'import' (i.e. add a tree to subversion such that the original data becomes a working copy directly)? Suppose, for example, that you wanted to put some of /etc under version control inside your repository: # 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" This takes advantage of a not-immediately-obvious feature of svn checkout: you can check out a directory from the repository directly into an existing directory. Here, we first make a new empty directory in the repository, and then check it out into /etc, transforming /etc into a working copy. Once that is done, you can use normal svn add commands to select files and subtrees to add to the repository. There is an issue filed for enhancing svn import to be able to convert the imported tree to a working copy automatically; see issue 1328. SVN & Eclipse Links:  SVN & Eclipse Links http://www.woodwardweb.com/java/000155.html Import method:  Import method Create a repository with svnadmin Start your project in some totally unrelated directory (not a subdirectory of svn). import it! This is the import method of starting a project. I think there's a mkdir method too. Since we have to create the repository and then the initial project Starting a Project by Importing, all on the local machine (cssgate).:  Starting a Project by Importing, all on the local machine (cssgate). We'll demonstrate doing it remotely later. mkdir lab1 cd lab1 nano something.txt svn import . file:///home/INSTTECH/yourname/svn430/svnlab –m "initial comment" "." means stuff in this directory This is the "project" (not the right term) It will demand a comment (message). create a file in a text editor. Overview of Process:  cssgate ~ svn430 lab1 main.cpp xyz.doc svn import Your home directory repository which you created with svnadmin First version of files in project, could be empty files a temporary directory Overview of Process

Related presentations


Other presentations created by Goldye

La Leccion de la Mariposa 2143
19. 06. 2007
0 views

La Leccion de la Mariposa 2143

seo july06
04. 09. 2007
0 views

seo july06

fairy tales
26. 10. 2007
0 views

fairy tales

INTERNET TECHNOLOGIES
19. 06. 2007
0 views

INTERNET TECHNOLOGIES

encrypt sign
16. 06. 2007
0 views

encrypt sign

1006969221 presentation brazil2
21. 09. 2007
0 views

1006969221 presentation brazil2

chauce3b
01. 10. 2007
0 views

chauce3b

1 Performance
07. 10. 2007
0 views

1 Performance

Swiss LifeScience Survey 2006
15. 10. 2007
0 views

Swiss LifeScience Survey 2006

Xray Lecture01
16. 10. 2007
0 views

Xray Lecture01

PAL MOR
23. 10. 2007
0 views

PAL MOR

kidd
04. 09. 2007
0 views

kidd

kuznetsov evgeny ppt ai seminar
26. 10. 2007
0 views

kuznetsov evgeny ppt ai seminar

MotherGoose
02. 11. 2007
0 views

MotherGoose

cewit
04. 09. 2007
0 views

cewit

primitive
15. 11. 2007
0 views

primitive

vision02
20. 11. 2007
0 views

vision02

The Art of Living
22. 11. 2007
0 views

The Art of Living

Zambia
04. 09. 2007
0 views

Zambia

Predation lecture Nov30 no2
30. 12. 2007
0 views

Predation lecture Nov30 no2

Launching the New Deal
31. 12. 2007
0 views

Launching the New Deal

prosperity
03. 01. 2008
0 views

prosperity

Machine Guarding
07. 01. 2008
0 views

Machine Guarding

Global Lessons Geneva2
07. 08. 2007
0 views

Global Lessons Geneva2

maldives accredit board
07. 08. 2007
0 views

maldives accredit board

Bernie sPP
07. 08. 2007
0 views

Bernie sPP

Labor
07. 08. 2007
0 views

Labor

OzCHI
07. 08. 2007
0 views

OzCHI

SCLC
03. 01. 2008
0 views

SCLC

culling elephants1
04. 09. 2007
0 views

culling elephants1

ch 15
04. 01. 2008
0 views

ch 15

UNDP
07. 08. 2007
0 views

UNDP

MDA Maldives
07. 08. 2007
0 views

MDA Maldives

attach28
10. 10. 2007
0 views

attach28

Cindy Zheng PRAGMA grid v3
09. 10. 2007
0 views

Cindy Zheng PRAGMA grid v3

Home COMBI workshop
07. 08. 2007
0 views

Home COMBI workshop

OHSWildlifeHandlersW EB
19. 11. 2007
0 views

OHSWildlifeHandlersW EB

Amazed
27. 11. 2007
0 views

Amazed

Panama MWG 29Jun06
22. 10. 2007
0 views

Panama MWG 29Jun06

erasmus mundus presentation
21. 03. 2008
0 views

erasmus mundus presentation

Special Topics 950414
07. 04. 2008
0 views

Special Topics 950414

program 1a 1c
04. 10. 2007
0 views

program 1a 1c

Korea Outlook
28. 03. 2008
0 views

Korea Outlook

Japan08
30. 03. 2008
0 views

Japan08

RabbitsCowsDaVinci
05. 01. 2008
0 views

RabbitsCowsDaVinci

CB05Chapter6
09. 04. 2008
0 views

CB05Chapter6

mobilanalysis
10. 04. 2008
0 views

mobilanalysis

nd planning brief
13. 04. 2008
0 views

nd planning brief

Interestrt
14. 04. 2008
0 views

Interestrt

interim2004
17. 04. 2008
0 views

interim2004

the final1
17. 04. 2008
0 views

the final1

IUM dec2007
22. 04. 2008
0 views

IUM dec2007

kumar friart
15. 10. 2007
0 views

kumar friart

ideaz first consulting
19. 06. 2007
0 views

ideaz first consulting

I2TK
19. 06. 2007
0 views

I2TK

Humor Grafico Informatica 1723
19. 06. 2007
0 views

Humor Grafico Informatica 1723

Grecia Italia 2136
19. 06. 2007
0 views

Grecia Italia 2136

Carta de Jesus 2014
19. 06. 2007
0 views

Carta de Jesus 2014

APP The American Experience WK 5
14. 12. 2007
0 views

APP The American Experience WK 5

Postwar World
20. 02. 2008
0 views

Postwar World

La France 2140
19. 06. 2007
0 views

La France 2140

Increibles pero ciertas 2138
19. 06. 2007
0 views

Increibles pero ciertas 2138

I Know Something Good About You
19. 06. 2007
0 views

I Know Something Good About You

FinanceWkshop Oct06
29. 09. 2007
0 views

FinanceWkshop Oct06

truck
28. 02. 2008
0 views

truck

CPAC2006 StrawPoll
19. 06. 2007
0 views

CPAC2006 StrawPoll

contenzioso
19. 06. 2007
0 views

contenzioso

catalogo2007
19. 06. 2007
0 views

catalogo2007

castello
19. 06. 2007
0 views

castello

A SSCC2007Feb07
09. 10. 2007
0 views

A SSCC2007Feb07

ch11 sec2
25. 03. 2008
0 views

ch11 sec2

pressyn
10. 10. 2007
0 views

pressyn

Condones a la medida 1712
19. 06. 2007
0 views

Condones a la medida 1712

EORTC STBSG
01. 11. 2007
0 views

EORTC STBSG

La capa verde 1852
19. 06. 2007
0 views

La capa verde 1852

Introduzione COAN in PMI
19. 06. 2007
0 views

Introduzione COAN in PMI

Indigena 2078
19. 06. 2007
0 views

Indigena 2078

Geno Pro
16. 06. 2007
0 views

Geno Pro

Exchange
16. 06. 2007
0 views

Exchange

Exchange Office
16. 06. 2007
0 views

Exchange Office

Excel 03
16. 06. 2007
0 views

Excel 03

eLearning An OverviewV2
16. 06. 2007
0 views

eLearning An OverviewV2

dpa foi
16. 06. 2007
0 views

dpa foi

24 Horas 2087
19. 06. 2007
0 views

24 Horas 2087

Creazione Sito Web
19. 06. 2007
0 views

Creazione Sito Web

convegno
19. 06. 2007
0 views

convegno

IRREBULL05
19. 06. 2007
0 views

IRREBULL05

present cartagena
22. 10. 2007
0 views

present cartagena

oct city hudco
01. 01. 2008
0 views

oct city hudco

5 Judios 2088
19. 06. 2007
0 views

5 Judios 2088

Plan Puebla Panama
22. 10. 2007
0 views

Plan Puebla Panama

Empyrean Code Master Challenge
16. 06. 2007
0 views

Empyrean Code Master Challenge

cm1 2002 ziegele3
19. 06. 2007
0 views

cm1 2002 ziegele3

IAEC Training
19. 06. 2007
0 views

IAEC Training

west ldc
04. 09. 2007
0 views

west ldc

11 WR USSR
03. 10. 2007
0 views

11 WR USSR

Thrombophilia
07. 08. 2007
0 views

Thrombophilia

Calendar3 20 07
19. 06. 2007
0 views

Calendar3 20 07

ctrl Mela Oven
19. 06. 2007
0 views

ctrl Mela Oven

Butcher
04. 09. 2007
0 views

Butcher