Changes between Version 24 and Version 25 of SVN
- Timestamp:
- Mar 21, 2011, 2:16:30 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SVN
v24 v25 6 6 http://svn.ckeditor.com 7 7 8 The SVN contains the "development version" of CKEditor. It doesn't reflect the contents of public distributions. Actually, some files are not present in the public downloads (like the "_dev" folder or the compressed "js"files, for example).8 The SVN contains the '''development version''' of CKEditor. It does not reflect the contents of public distributions. Actually, some files are not present in the public downloads (like the {{{_dev}}} folder or the compressed {{{.js}}} files, for example). 9 9 10 '''We do n't recommend using this version on production'''. There are also security implications on doing so. To make the SVN version "production safe", it must be processed with CKReleaser (available inside _dev). A safer and easier option is to simply use the Nightly Build, which is already processed.10 '''We do not recommend using this version in a production environment'''. There are also security implications in doing so. To make the SVN version "production safe", it must be processed with CKReleaser (available inside the {{{_dev}}} folder). A safer and easier option is to simply use the Nightly Build, which is already processed. 11 11 12 12 == Nightly Build == 13 13 14 Every night, at 0:30 PST, a "'''Nightly Build'''" is generated ,from the SVN version. Visit the following web site to download it:[[BR]]14 Every night, at 0:30 PST, a "'''Nightly Build'''" is generated from the SVN version. Visit the following web site to download it:[[BR]] 15 15 http://nightly.ckeditor.com/ 16 16 17 You may also test the nightly online directly[http://nightly.ckeditor.com/demo here].17 You may also directly test the nightly build online [http://nightly.ckeditor.com/demo here]. 18 18 19 The nightly is processed for public distribution. As the fixes and features available on nightlies are still under testing and development, it may be used on production systems at your own risk.19 The nightly build is processed for public distribution. As the fixes and features available on nightlies are still under testing and development, it may be used on production systems at your own risk. 20 20 21 21 == Working with SVN == … … 25 25 == Testing Old Revisions == 26 26 27 There are occasions during the development, when bugs are introduced by recent changes in the code. To precisely understand and find when things changed, we have created a dedicated web site with a list of all revisions available forthe trunk:27 There are occasions during the development, when bugs are introduced by recent changes in the code. In order to be able to determine when things changed, we have created a dedicated website with a list of all revisions done to the trunk: 28 28 29 29 http://rev.ckeditor.com/ 30 30 31 The list in the above site is quite similar to the [log:CKEditor/trunk trunk log page], with the exception that it contains and additional column called "Test". A link can be found there to open the sample pages of CKEditor,generated for each precise revision.31 The list on the above site is quite similar to the [log:CKEditor/trunk trunk log page], with the exception that it contains an additional column called "Test". A link can be found there to open the sample pages of CKEditor generated for each precise revision. 32 32 33 33 == Repository Structure == 34 34 35 35 {{{ 36 CKEditor ----------- + Every subproject will have a directory in the root.36 CKEditor ------------+ Every subproject will have a directory in the root. 37 37 trunk -----------+ This is the development place. 38 38 branches … … 49 49 All subprojects in the repository will present a structure similar to the above. 50 50 51 === The " trunk" ===51 === The "Trunk" === 52 52 53 The trunk is the effective place we'll be working everyday. Usually we'll have local working copies of the trunk only (and possibly some branches).53 The '''trunk''' is the effective place we will be working with everyday. Usually we will have local working copies of the trunk only (and possibly some branches). 54 54 55 Starting from version 2.4, the trunk will always have stable code which we can publish to the public SVN, and eventually release officially. So, only important bugs and small changes will be committed here, while more delicate and extensive developments will be done in a "branch".55 Starting from version 2.4, the trunk will always have stable code which we can publish to the public SVN, and eventually release officially. As a result, only important bugs and small changes will be committed here, while more delicate and extensive developments will be done in a "branch". 56 56 57 57 === Branches === 58 58 59 Branches give us isolated environments for development, and once tested and confirmed a new work is ready, it can be simply merged inthe trunk.59 '''Branches''' give us isolated environments for development, and once tested and confirmed a new code chunk is ready, it can simply be merged into the trunk. 60 60 61 For code that does n't bring instability, like trivial fixes or small features, there is no need to work on a separated branch. It can be committed directly to the trunk if you feel the code is ok and it is well tested. It makes the management easier.61 For code that does not bring instability, like trivial fixes or small features, there is no need to work in a separated branch. Such code can be committed directly to the trunk if you feel the code is OK and it is well tested. This approach makes the code management easier. 62 62 63 63 The branches could be created in the following spaces: 64 64 65 * ''' branches/developers''': each developer may have a private branch under this directory. The directory name is the developer name (fredck, for example). The developer himself can decide to use it or not, and have complete freedom for it.66 * ''' branches/features''': if a feature is too big and complex, a developer coulddecide to create a dedicated branch for it.67 * ''' branches/versions''': there could be branches for future versions, waiting while previous ones are being tested and released.65 * '''{{{branches/developers}}}''': each developer may have a private branch under this directory. The directory name is the developer name ("fredck", for example). The developer himself can decide to use it or not, and have complete freedom for it. 66 * '''{{{branches/features}}}''': if a feature is too big and complex, a developer can decide to create a dedicated branch for it. 67 * '''{{{branches/versions}}}''': there could be branches for future versions, waiting while the previous ones are being tested and released. 68 68 69 69 ==== Merging Branches ==== 70 70 71 A common task during a branch development, is to '''merge changes made in the trunk to the branch''', leaving it always up to date with the trunk. Remember that merges must be done from the last revision merged, starting from the revision from which the branch has beencreated.71 A common task during the branch development is to '''merge changes made in the trunk to the branch''', leaving it always up to date with the trunk. Remember that merges must be done from the last revision merged, starting from the revision from which the branch was created. 72 72 73 When '''merging branches to the trunk''', first merge the trunk to the branch and check that everything is ok. Make the necessary changes and commit the branch. Then switch to the trunk and merge the differences between the branch HEAD and the last trunk revision you have just merged to the branch (usually HEAD). Then, if the branch is not anymore needed, just delete it (SVN delete I mean).73 When '''merging branches to the trunk''', first merge the trunk to the branch and check that everything is ok. Make the necessary changes and commit the branch. Then switch to the trunk and merge the differences between the branch {{{HEAD}}} and the last trunk revision you have just merged to the branch (usually {{{HEAD}}}). Then, if the branch is not needed anymore, just delete it by using SVN delete. 74 74 75 If you are unsure , don't be afraid of asking others to execute this task for you.75 If you are unsure about the process, do not be afraid of asking others to execute this task for you. 76 76 77 TortoiseSVN offers a nice tool to track the creation an life-cicle of branches. It is called "Revision graph". The SVN log can also be used for it.77 TortoiseSVN offers a nice tool to track the creation and life cicle of branches. It is called "Revision graph". The SVN log can also be used for it. 78 78 79 79 === Tags === … … 83 83 == Committing == 84 84 85 Try to make a single commit for each fix or feature. Avoid making big commits with lots of changes. This separation makes each commit an isolate thing. It makes code review and merge tasks easy.85 Try to make a single commit for each fix or feature. Avoid making big commits with lots of changes. This separation makes each commit an isolated thing. It makes code review and merge tasks easy. 86 86 87 The commit log message is very important. Do n't underestimate it. It must be wellwritten and informative. Whenever possible, make references to related Trac items, like tickets or changesets. You may use one of the "standard" messages, like the following examples:87 The commit log message is very important. Do not underestimate it. It must be well-written and informative. Whenever possible, make references to related Trac items, like tickets or changesets. You may use one of the "standard" messages, like the following examples: 88 88 89 89 * !#81: IE has a DOM bug that caused FCKDomTools.RTrimNode to break. … … 96 96 http://tortoisesvn.tigris.org/ 97 97 98 '''Subversion''': the official SVN command line . Windows binaries can be found in the download page:[[BR]]98 '''Subversion''': the official SVN command line tool. Windows binaries can be found on the download page:[[BR]] 99 99 http://subversion.tigris.org/ 100 100 101 Book - '''Version Control with Subversion''': a good book about SVN:[[BR]]101 Book - '''Version Control with Subversion''': a recommended book about SVN:[[BR]] 102 102 http://svnbook.red-bean.com/ 103 103