tailieunhanh - Expert PHP 5 Tools phần 5
Định kỳ, nó trở nên cần thiết cho các nhà phát triển để cập nhật bản sao địa phương làm việc của mình bằng cách kết nối với các kho lưu trữ trung ương và tải về những thay đổi mới cam kết bởi nhà phát triển khác kể từ lần cuối cùng ông đã thực hiện một bản cập nhật (hoặc thanh toán). | Chapter 4 Periodically it becomes necessary for the developer to update his local working copy by connecting to the central repository and downloading new changes committed by other developers since the last time he performed such an update or checkout . This is done to ensure that the code he develops will be compatible with the contributions of the other developers. It is even possible for the developer to have to update his working copy with his own changes if he uses more than one working copy say one on his work machine and another at home. In many cases Subversion is able to merge changes automatically without requiring input from the developer. However the developer should still examine the changes to make sure there are no unanticipated conflicts with his as yet uncommitted code. If there are conflicts Subversion cannot resolve on its own the developer will be prompted to manually resolve those conflicts before continuing. After going through multiple iterations of making changes and synchronizing with the repository the developer will reach a point where his development has been completed and he should then commit his changes back to the repository. Let s pick up work on our svn-hook project to see the above workflow in action. First we check out the project for us to have a repository-aware local copy of the code If you paid close attention to the above example you will have noticed that we check out the trunk of the project but we put it into a local directory named after the project itself. This is simply a naming convention I follow for projects I work on. If I were to check out a branch I probably would have named the local folder accordingly something like svn-hooks-windows-branch. 169 Download from Wow eBook Source Code and Version Control Next let s make some changes to our project by adding a destructor method and adding some inline comments to the constructor. After making those changes we want to update our local working copy. .
đang nạp các trang xem trước