Sunday, November 28, 2010

Getting started with SVN on Windows 7

the quick an dirty way.

Download SVN from here

Install it to C:\csvn

open a CMD window
cd C:\csvn\bin
svnserve.exe -d


To IMPORT code INTO SVN:
open a CMD above the source folder you want to import
cd C:\acme\svnsource

c:\csvn\bin\svn import osb file:///C:/acme/svnrepo -m "Creation of my first project"

To CHECKOUT the code FROM SVN:

c:\csvn\bin\svn checkout osb file:///C:/acme/svnrepo osb

To provide username and password:
svn --username ${svnusername} --password ${svnpassword}

To display all projects with they last check-in info (revision, username, timestamp) use:
svn -verbose list url
example:
  12991 auser1              Oct 01 17:07 Project1/
  13636 auser2              Oct 09 13:32 Project2/
  10491 auser3              Aug 05 01:00 Project3/


To create a release notes (list of all comments for checkins since last version):
svn log url -v -r 2012-09-22:14-34 --xml

this will list all entries in a date range (from date to date)
svn log -r {2012-09-22:10-12}:{2012-09-23:10-12} That's all, folks!


2 comments:

nick said...

Just curious, what do you check in for OSB files? The Proxy and Business Service files or the JAR export? And slightly related, do you use the Eclipse tooling or only the Web Console?

If you use the Eclipse based tooling to modify the OSB Config, the Security Policy and Operational Settings are not included in the Proxy Files generated or imported by the Eclipse tooling.

What I've had to do is create my config in Eclipse, import into the server, the apply my settings in the console, then export the config jar from the console and check that in.

Pierluigi Vernetto said...

we checkin individual files, and I personally avoid Eclipse for OSB...

sorry for late reply...