Subversion SVN Interview Questions

Mention what is the difference between GIT and SVN repository?

The difference between SVN and GIT is

    Git does not support “commits” across multiple branches or tags. Subversion allows the creation of folders at any location in the repository layout
Gits are unchangeable while subversion enables committers to treat a tag a branch and to create multiple revisions under a tag root
Git is less preferred for handling large files or frequently changing binary files while SVN is capable of handling multiple projects stored in the same repository

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.

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

In SVN repository you can store

Source Code
Build scripts
Test data used by QA
DB schema
Project settings (When whole team is using the same IDE)
Project documentation (Internal and External)
Minutes of meetings, significant e-mails and info from the web
Expensively generated artifacts
And other documents related to the project

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 difference between commit and update? Explain.

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.

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 baselining the code after a major release.

Difference between Update and Commit ?

Update is used to update the local workspace with the changes commited 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.

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

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

Explain how you can revert to a previous version?

To retrieve a previous version, you have to use “revert” command. But revert command will simply erase local edits, what you actually need is to “merge” command. For example, you have a file [abc.txt] and the current version is 101, and you want version 201. Then you will use the command like

svn merge –r 101:201 abc.txt
svn commit –m “Reverted to revision 201” abc.txt

“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 info@tekslate.com, 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 *

    Support


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

    3 + 5