SlideShare une entreprise Scribd logo
1  sur  33
Subversion proper
renaming and
merging as if you’ve
read the whole code
of conduct
        Fazreil Amreen bin Abdul Jalil
This is a demo
• What happen when we rename the files using
  the svn client and
• What happen when we don’t use the svn
  client
• There are 2 files:
  – Cordon Bleu.txt (will rename using svn client)
  – Index.html (will rename not using svn client)
• Svn client used is tortoise svn.
Original file and folders at the repo




                    Checked out to
         D:SVN_checkoutssandboxbranchedout
Checked out folder




     Branched out to
Branch out from TRUNK
Branch out from TRUNK
Switch to the refactoring_branch
Switch to the refactoring_branch
Switch to the refactoring_branch
Renaming cordon bleu using tortoise
              svn
Renaming cordon bleu using tortoise
              svn
Result of renaming



           Notice the icon is (addition)
Renaming index by F2 or rightclick
            rename
Result of naming


         Notice the icon is (non-version
                      item)
Svn commit both changes
Svn commit both changes
After commit, switch back to trunk
After commit, switch back to trunk
Now in trunk


      Notice the filename is the original
                  from trunk
Merge changes from
refactoring_branch
Merge changes from
refactoring_branch
Merge changes from
refactoring_branch
After merge, commit for trunk
After merge, commit for trunk
After merge, commit for trunk
Log of Cordon Bleu
Log of Cordon Bleu




Notice the log is legacy, it inherit
the log entry of the files before
             rename
Revision graph of Cordon Bleu
Log of index
Log of index




Notice the file is treated as new
Revision graph of index and index
            renamed
  Index.html          Index renamed.html
Revision graph of index and index
            renamed
  Index.html          Index renamed.html
conclusion
• Improper renaming method will cause the
  version losing its track.
• Renaming is done by copying the file using
  command line svn copy
• Which automatically makes the file to be marked
  with addition while maintaining the history
• Same thing apply to delete, please delete using
  tortoise svn>delete, if not the item will be
  marked as missing.

Contenu connexe

Similaire à Subversion proper renaming and merging as if you’ve read the whole code of conduct

Subversion on .Unix
Subversion on .UnixSubversion on .Unix
Subversion on .UnixTrong Dinh
 
Subversion on .Unix
Subversion on .UnixSubversion on .Unix
Subversion on .UnixTrong Dinh
 
SVN Tool Information : Best Practices
SVN Tool Information  : Best PracticesSVN Tool Information  : Best Practices
SVN Tool Information : Best PracticesMaidul Islam
 
Subversion client
Subversion clientSubversion client
Subversion clientrchakra
 
Git your life for fun & profit
Git your life for fun & profitGit your life for fun & profit
Git your life for fun & profitGeeks Anonymes
 
Totalsvn Usage And Administration By Gopi
Totalsvn Usage And Administration By GopiTotalsvn Usage And Administration By Gopi
Totalsvn Usage And Administration By Gopigopinathkarangula
 
Subversion
SubversionSubversion
Subversionthebdot1
 
Introduction to Subversion and Google Project Hosting
Introduction to Subversion and Google Project HostingIntroduction to Subversion and Google Project Hosting
Introduction to Subversion and Google Project HostingPhilip Johnson
 
Source version control using subversion
Source version control using subversionSource version control using subversion
Source version control using subversionMangesh Bhujbal
 
How to use CVS applied to SOLab
How to use CVS applied to SOLabHow to use CVS applied to SOLab
How to use CVS applied to SOLabPablo Arriazu
 
version controlling in software development
version controlling in software developmentversion controlling in software development
version controlling in software developmentAnushka Perera
 

Similaire à Subversion proper renaming and merging as if you’ve read the whole code of conduct (20)

Subversion on .Unix
Subversion on .UnixSubversion on .Unix
Subversion on .Unix
 
Subversion on .Unix
Subversion on .UnixSubversion on .Unix
Subversion on .Unix
 
Subversion User Guide
Subversion User GuideSubversion User Guide
Subversion User Guide
 
Subversion
SubversionSubversion
Subversion
 
SVN Tool Information : Best Practices
SVN Tool Information  : Best PracticesSVN Tool Information  : Best Practices
SVN Tool Information : Best Practices
 
Subversion client
Subversion clientSubversion client
Subversion client
 
Git your life for fun & profit
Git your life for fun & profitGit your life for fun & profit
Git your life for fun & profit
 
Git your life for fun & profit
Git your life for fun & profitGit your life for fun & profit
Git your life for fun & profit
 
Totalsvn Usage And Administration By Gopi
Totalsvn Usage And Administration By GopiTotalsvn Usage And Administration By Gopi
Totalsvn Usage And Administration By Gopi
 
Svn workflow
Svn workflowSvn workflow
Svn workflow
 
Subversion
SubversionSubversion
Subversion
 
Introduction to Subversion and Google Project Hosting
Introduction to Subversion and Google Project HostingIntroduction to Subversion and Google Project Hosting
Introduction to Subversion and Google Project Hosting
 
Source version control using subversion
Source version control using subversionSource version control using subversion
Source version control using subversion
 
subversion.ppt
subversion.pptsubversion.ppt
subversion.ppt
 
How to use CVS applied to SOLab
How to use CVS applied to SOLabHow to use CVS applied to SOLab
How to use CVS applied to SOLab
 
version controlling in software development
version controlling in software developmentversion controlling in software development
version controlling in software development
 
Subversion
SubversionSubversion
Subversion
 
Source control
Source controlSource control
Source control
 
Random House
Random HouseRandom House
Random House
 
Subversion last minute survival crash course
Subversion  last minute survival crash courseSubversion  last minute survival crash course
Subversion last minute survival crash course
 

Subversion proper renaming and merging as if you’ve read the whole code of conduct