33
Subversion proper renaming and merging as if you’ve read the whole code of conduct Fazreil Amreen bin Abdul Jalil

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

Embed Size (px)

DESCRIPTION

 

Citation preview

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

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

Fazreil Amreen bin Abdul Jalil

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

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.

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

Original file and folders at the repo

Checked out to D:\SVN_checkouts\sandbox\branchedout

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

Checked out folder

Branched out to

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

Branch out from TRUNK

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

Branch out from TRUNK

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

Switch to the refactoring_branch

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

Switch to the refactoring_branch

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

Switch to the refactoring_branch

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

Renaming cordon bleu using tortoise svn

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

Renaming cordon bleu using tortoise svn

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

Result of renaming

Notice the icon is (addition)

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

Renaming index by F2 or rightclick rename

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

Result of naming

Notice the icon is (non-version item)

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

Svn commit both changes

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

Svn commit both changes

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

After commit, switch back to trunk

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

After commit, switch back to trunk

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

Now in trunk

Notice the filename is the original from trunk

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

Merge changes from refactoring_branch

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

Merge changes from refactoring_branch

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

Merge changes from refactoring_branch

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

After merge, commit for trunk

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

After merge, commit for trunk

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

After merge, commit for trunk

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

Log of Cordon Bleu

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

Log of Cordon Bleu

Notice the log is legacy, it inherit the log entry of the files before

rename

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

Revision graph of Cordon Bleu

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

Log of index

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

Log of index

Notice the file is treated as new

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

Revision graph of index and index renamed

Index.html Index renamed.html

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

Revision graph of index and index renamed

Index.html Index renamed.html

Lost continuation

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

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.