Subversion SVN Interview Questions

SVN Interview Questions

What is SVN?

Subversion is an open source control system which is used to trace all the changes made to your source code.

List out what all things should be stored in SVN repository?

  1. Source Code
  2. MySQL Queries
  3. Database Updates
  4. Project regarding important files
  5. Product Documents
  6. Minutes of Metting and Imp Email

How to delete file from SVN Repo?

SVN delete filename

Difference between SVN commit and SVN update?

SVN commit:: Push (upload) the local changes to Repository.
SVN Update:: Get (download) the Repository changes files to local system.

List out what is the best practices for SVN?

  1. Work from your own local work-space
  2. Commit small autonomous changes
  3. Use comment
  4. Validate the files you are committing, you actually changed
  5. Take Update before commit to the Repo.

Explain how you can apply a patch in SVN?

To apply a patch in SVN, you are required to “Create Patch” by making changes and generating the .diff file. Then this .diff file can be implemented to the new code base using “Apply Patch” .

What is the command use to view the difference between the local version and repository version? Mention.

The command uses to view the difference between the local and repository version is

svn diff filename
svn diff dirname

What does the result codes G and R in svn indicates? Mention.

The result codes G and R in svn indicates

G code: Changes on the repo were automatically merged into the working copy.
R code: This code indicates that item has been replaced in your working copy. This means the file was programmed or scheduled for deletion, and a new file with the same name was scheduled for addition in its place.

What is the function of Revert in subversion? Mention.

“Revert” function will remove your local changes and reload the latest version from the repository.

What is “branch” , “Tag” and “Trunk” in SVN ?

Trunk is the main body of development, originating from the start of the project till end.

Branch is a copy of code derived from a certain point in the trunk that is used for applying major changes to the code while preserving the integrity of the code in the trunk.

Trunk is a point in time on the trunk or a branch that you wish to preserve. This is like base-lining the code after a major release.

Difference between Update and Commit ?

Update is used to update the local workspace with the changes committed by the team to the repository whereas Commit is the process to push changes from local to repository.

Explain what is the difference between commit and update?

Update is used to update the local workspace with the changes made by the team to the repository, while commit is the process to implement changes from local to repository, in simple words, upload a file into repository.

“At TekSlate, we are trying to create high quality tutorials and articles, if you think any information is incorrect or want to add anything to the article, please feel free to get in touch with us at, we will update the article in 24 hours.”

0 Responses on Subversion SVN Interview Questions"

    Leave a Message

    Your email address will not be published. Required fields are marked *


    Please leave a message and we'll get back to you soon.
    Three + 6