170 likes | 181 Views
Collaboration with Subversion (SVN). http://flic.kr/p/6AVQFT. What are you going to learn about today?. Subversion features for facilitating collaboration Eclipse Subversive plug-in particulars. http://flic.kr/p/8JpkTg.
E N D
Collaboration with Subversion (SVN) http://flic.kr/p/6AVQFT
What are you goingto learn about today? • Subversion features for facilitating collaboration • Eclipse Subversive plug-in particulars http://flic.kr/p/8JpkTg
You’ve practiced using Subversion individuallyLet’s (naively) imagine what might happen if two developers worked on a project
Repository A Jack Jill http://flic.kr/p/6kLBBi http://flic.kr/p/P1JPT
Repository A A A svn checkout svn checkout Jack Jill http://flic.kr/p/6kLBBi http://flic.kr/p/P1JPT
Repository A A’ A’’ Jack Jill edits edits http://flic.kr/p/6kLBBi http://flic.kr/p/P1JPT
Repository A’ A’ A’’ svn commit Jack Jill http://flic.kr/p/6kLBBi http://flic.kr/p/P1JPT
Repository Problem! Jack’s changes were lost A’’ A’ A’’ svn commit Jack Jill http://flic.kr/p/6kLBBi http://flic.kr/p/P1JPT
Fortunately, Subversion is wise to this problem Let’s rewind and see how it would really happen when Jill commits Repository Problem! Jack’s changes were lost A’’ A’ A’’ svn commit Jack Jill http://flic.kr/p/6kLBBi http://flic.kr/p/P1JPT
Repository SVN: Error.Out of date. A’ A’ A’’ svn commit Oh! I need to merge my changes Jack Jill http://flic.kr/p/6kLBBi http://flic.kr/p/P1JPT
Repository A’ A’ A’’ A’ svn update Jack Jill http://flic.kr/p/6kLBBi http://flic.kr/p/P1JPT
Repository A’ A’ A’’’ Jack Jill edits http://flic.kr/p/6kLBBi http://flic.kr/p/P1JPT
Repository A’’’ A’ A’’’ svn commit Alright!That’s better Jack Jill http://flic.kr/p/6kLBBi http://flic.kr/p/P1JPT
Repository A’’’ A’’’ svn update A’ A’’’ Jack, don’t forget to update Jack Jill Will do. Thanks! http://flic.kr/p/6kLBBi http://flic.kr/p/P1JPT
Possible Results of DoingCommit and Update on a File • Update tries to automatically merge the files • If it can’t, then it • Marks file as conflicted • creates copies of relevant revisions in the working copy • these files have .r# suffix • and leaves it up to the user to merge and tell svn that the conflict on the file is “resolved”
Eclipse demo time! http://flic.kr/p/5dfuqL
Summary • Copy-modify-merge with Subversion • Eclipse SVN plugin features http://flic.kr/p/YSY3X