For BE/B.Tech/BCA/MCA/ME/M.Tech Major/Minor Project for CS/IT branch at minimum price Text Message @ 9424820157

SVN Interview Questions

SVN Interview Questions


Q1. What is Svn?
Subversion is an open-source control system that is used to trace all the changes made to your source code. It is a repository used to manage files, folders, directories, and the modification made to these files over a period of time. While SVN repository provides a complete history of changes made to the files and can easily track if someone had made changes in the file.

Q2. What Is “branch”, “tag”, And “trunk” in Svn?
Trunk is the main body of development, originating from the start of the project till the 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.

Q3. What Is Use Of Revert In Svn?
Revert your local changes.

Q4. 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.

It has two types:

Local Revert: It will delete all changes from files that you made after updates and before commit.
Repo Revert: Upload the changes to the previous Repo.

Q5. List Out What Is The Best Practice For Svn?
Work from your own local workspace
Commit small autonomous changes
Use comment
Validate the files you are committing, you actually changed
Take Update before committing to the Repo.

Q6. List Out What All Things Should Be Stored In Svn Repository?
Source Code
Mysql Queries
Database Updates
Project regarding important files
Product Documents
Minutes of Meeting and Imp Email

Q7. 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”.

Q8. 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.

Q9. 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 the repository.

Q10. What Is The Command To See What Is Inside The Repository?
Command svn list file:///home/mysurface/repo/programming_repo is used to see what is inside the repository.

Q11. What Is The Command Use To View The Difference Between The Local Version And Repository Version?
The command uses to view the difference between the local and repository version is

Svn diff filename
Svn diff dirname

Q12. What Does The Result Codes G And R In Svn indicate?
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 the 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.

Q13. What Is The Function Of Revert In Subversion?
“Revert” function will remove your local changes and reload the latest version from the repository.

Q14. Mention What Is The Command To Add A File Or Dir?
To add a file or dir in SVN the command you will use

Svn add filename
Svn add dirname

Q15. List Out The Common Subversion Commands?
Common subversion commands include:
 

Import
Checkout
Commit
Update
Other than these it also has commands like revert, move, copy and merge.

Q16. 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

Q17. What Are The Commands That Can Be Used To Move Some Subset Of Code And History Of This Code From One Svn Repo To Another?
Following commands can be used:
Svnadmin dump
Svndumpfilter include
Svnadmin load
Svn remove

Q18. What Is The Command To Create A New Directory Under Version Control?
Command to create a new directory under version control includes
Svn mkdir directory
Svn mkdir http://url/directory

Q19. Mention How You Can Import Your Existing Directory Into The New Repository?
The command you will use to import your existing directory into the new repository you have to write
Svn import/home/my surface/programming
file:///home/mysurface/repo/programing_repo-m “initial import”.

Q20. What is the use of TortoiseSVN?
TortoiseSVN is a Subversion client, implemented as a Microsoft Windows shell extension, that helps programmers manage different versions of the source code for their programs. It is free software released under the GNU General Public License

No comments:

Post a Comment



Please go through below tutorials:


Mule 4 Tutorials

DEPLOY TO CLOUDHUB C4E CLIENT ID ENFORCEMENT CUSTOM POLICY RABBIT MQ INTEGRATION
XML TO JSON WEBSERVICE CONSUMER VM CONNECTOR VALIDATION UNTIL SUCCESSFUL
SUB FLOW SET & REMOVE VARIABLE TRANSACTION ID SCATTER GATHER ROUND ROBIN
CONSUME REST WEBSERVICE CRUD OPERATIONS PARSE TEMPLATE OBJECT TO JSON LOAD STATIC RESOURCE
JSON TO XML INVOKE IDEMPOTENT FILTER FOR EACH FLAT TO JSON
FIXWIDTH TO JSON FIRST SUCCESSFUL FILE OPERATIONS EXECUTE ERROR HANDLING
EMAIL FUNCTIONALITY DYNAMIC EVALUATE CUSTOM BUSINESS EVENT CSV TO JSON COPYBOOK TO JSON
CHOICE ASYNC

Widely used Connectors in Mule 3

CMIS JETTY VM CONNECTOR SALESFORCE POP3
JMS TCP/IP WEBSERVICE CONSUMER QUARTZ MONGO DB
FILE CONNECTOR DATABASE CONNECTOR


Widely used Scopes in Mule 3

SUB FLOW REQUEST REPLY PROCESSOR CHAIN FOR EACH CACHE
ASYNC TCP/IP COMPOSITE SOURCE POLL UNTIL SUCCESSFUL
TRANSACTIONAL FLOW

Widely used Components in Mule 3

EXPRESSION CXF SCRIPT RUBY PYTHON
JAVASCRIPT JAVA INVOKE CUSTOM BUSINESS EVENT GROOVY
ECHO LOGGER


Widely used Transformers in Mule 3

MONGO DB XSLT TRANSFORMER REFERENCE SCRIPT RUBY
PYTHON MESSAGE PROPERTIES JAVA TRANSFORMER GZIP COMPRESS/UNCOMPRESS GROOVY
EXPRESSION DOM TO XML STRING VALIDATION COMBINE COLLECTIONS BYTE ARRAY TO STRING
ATTACHMENT TRANSFORMER FILE TO STRING XML TO DOM APPEND STRING JAVASCRIPT
JSON TO JAVA COPYBOOK TO JSON MAP TO JSON JSON TO XML FLATFILE TO JSON
FIXWIDTH TO JSON CSV TO JSON


Widely used Filters in Mule 3

WILDCARD SCHEMA VALIDATION REGEX PAYLOAD OR
NOT MESSAGE PROPERTY MESSAGE IDEMPOTENT FILTER REFERNCE
EXPRESSION EXCEPTION CUSTOM AND


Exception Strategy in Mule 3

REFERENCE EXCEPTION STRATEGY CUSTOM EXCEPTION STRATEGY CHOICE EXCEPTION STRATEGY CATCH EXCEPTION STRATEGY GLOBAL EXCEPTION STRATEGY


Flow Control in Mule 3

CHOICE COLLECTION AGGREGATOR COLLECTION SPLITTER CUSTOM AGGREGATOR FIRST SUCCESSFUL
MESSAGE CHUNK AGGREGATOR MESSAGE CHUNK SPLITTER RESEQUENCER ROUND ROBIN SOAP ROUTER