• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

SVN

Subversion Branch

November 6, 2012

Subversion Branch creates a new branch in the local working directory. In the example below, a copy of the project directory is forked and given a new name. The new branch will be treated as a separate branch.

svn copy http://repository/project/trunk \ 
         http://repository/project/branch/newbranch 
         \ -m "Place comments here."

svn copy http://repository/project/trunk \ http://repository/project/branch/newbranch \ -m "Place comments here."

Filed Under: SVN Tagged With: branch, copy

Subversion Revert

November 6, 2012

Subversion Revert undoes the recent changes in the local working directory. Revert can also undo changes recursively. Here’s a couple of examples displayed below.

svn revert foo.c
svn revert --recursive .

svn revert foo.c svn revert --recursive .

Filed Under: SVN Tagged With: revert

Subversion Diff

November 6, 2012

Subversion Diff will display differences between a file in the local working directory versus the same file that’s located in the repository. It will display on the screen what has been edited, modified or deleted. You invoke the Diff command from the Terminal as displayed below.

svn diff

svn diff

Filed Under: SVN Tagged With: diff

Subversion Delete

November 6, 2012

The Subversion Delete command will delete a file in the local working directory. While it removes file in the working copy, it doesn’t remove the same file in the repository until after a commit.

svn delete foo.c

svn delete foo.c

Filed Under: SVN Tagged With: delete

Subversion Move

November 6, 2012

Subversion Move is a command that renames a file in either in the local working directory or directly in the repository. You can invoke the move command from Terminal like this example below.

svn move foo.c bar.c
svn move http://repository/project/trunk/foo.c \ 
    http://repository/project/trunk/bar.c 
    -m "Place comment here."

svn move foo.c bar.c svn move http://repository/project/trunk/foo.c \ http://repository/project/trunk/bar.c -m "Place comment here."

Filed Under: SVN Tagged With: move

Subversion Export

November 5, 2012

Subversion Export creates a clean working copy of a project without the .svn folders and files. In this example, the command creates a folder named `project` and places a clean working copy in it.

svn export http://repository/project/trunk project

svn export http://repository/project/trunk project

Filed Under: SVN Tagged With: export

Subversion Update

November 5, 2012

Subversion Update is used to synch the working copy with repository. You can use any of the two commands below. Any changes done by you since the last update will not be overwritten. Your changes will be reflected on the repository once you perform a commit to the repository.

svn update
svn up

svn update svn up

Filed Under: SVN Tagged With: update

Subversion Info

November 5, 2012

Subversion Display shows information of the local working copy of the repository. The information displayed will contain the versioned number, the recent commits made, user-level locks held on a object, local scheduling information such as (added, deleted and copied), and any local convict information. To display the info, type in the Terminal this command.

svn info

svn info

Filed Under: SVN Tagged With: info

  • Go to page 1
  • Go to page 2
  • Go to Next Page »
  • Home
  • About
  • Archives

Copyright © 2023