SVN 使用经验

来源:互联网 发布:矩阵qr分解怎么做 编辑:程序博客网 时间:2024/05/17 21:23

·        Use svn property svn:external to load part offiles from svn repository

 

Problem we meet:   Now the AppUp SDK SVNdirectory is so big, it need take long time to load all the files under the srcdirectory, but most of time, user may only need part of source.  Forexample, when change the windows CPP version, only need few directory(core,cpp,include,adputil)

 

Solution:

             Usethe svn property svn:externals

 

Try it:

Just check out the URL  https://shwde8342.ccr.corp.intel.com/svn/trunk/Project/GlobalSVNAppUpSDKMapping , you will find that only the windows CPP related source code of global SVN hasbeen checked out, and you can manipulate the SVN as usual.

 

Magic behind:

               svn property svn:externals is used to get the source from otherrepository. For example, if our AppUP SDK need use the Meego SVN, then we canadd a directory called Meego and set it’s property to Meego’s URL, then SVN issmart enough to know that it will retrieve some source code from Meego.

 

How to set property in svn:

               Just choose file or directory, right click mouse and choose “Properties”,then choose “New”.   

 

I have create a directory in our local SVN, and add asub-directory called src.  And set following svn property: 

https://subversion.jf.intel.com/ssg/ssd/mrtc/IADP/ADP_SDK/Src/cppcpp

https://subversion.jf.intel.com/ssg/ssd/mrtc/IADP/ADP_SDK/Src/corecore

https://subversion.jf.intel.com/ssg/ssd/mrtc/IADP/ADP_SDK/Src/includeinclude

https://subversion.jf.intel.com/ssg/ssd/mrtc/IADP/ADP_SDK/Src/samples samples

https://subversion.jf.intel.com/ssg/ssd/mrtc/IADP/ADP_SDK/Src/liblib

https://subversion.jf.intel.com/ssg/ssd/mrtc/IADP/ADP_SDK/Src/adputiladputil

https://subversion.jf.intel.com/ssg/ssd/mrtc/IADP/ADP_SDK/Src/RawLocation RawLocation

 

If I only need the AppUp Meego part source, how to do ?

Easy, just check out same url https://shwde8342.ccr.corp.intel.com/svn/trunk/Project/GlobalSVNAppUpSDKMapping, when you see the src directory has been checked out then press  CANCELbutton to cancel SVN to check out the Window CPP code, then choose the srcdirectory and cheange the svn:externals property to following:

https://subversion.jf.intel.com/ssg/ssd/mrtc/IADP/ADP_SDK/Src/cpp-meegocpp-meego

https://subversion.jf.intel.com/ssg/ssd/mrtc/IADP/ADP_SDK/Src/core-meegocore-meego

https://subversion.jf.intel.com/ssg/ssd/mrtc/IADP/ADP_SDK/Src/includeinclude

More you need know…

               Actually, use the svn property, we can do so many interesting and useful thing,such as use the bugtraq:xx to integrated with the BugZilla, …

 

·        External programms:

By default, SVN use the TortoiseDiff andTortoiseMerge for diff and merge, if you don’t like that, then you can chooseyour favorite tools by right mouse click and choose your own program. 

I highly recommend use the BeyondCompare.  TheBeyondCompare Merge is much much better than  TortoiseMerge

 

svn external program

 

tips:

    The parameter order of TortoiseMerge and BeyoncCompare order is different, just use a batch file to adapt them

原创粉丝点击