Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 282 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
282
Dung lượng
2,46 MB
Nội dung
[...]... is that the examples are always accurate; they describe exactly the behavior of the version of Mercurial that’s mentioned at the front of the book If I update the version of Mercurial that I’m documenting, and the output of some command changes, the build fails There is a small disadvantage to this approach, which is that the dates and times you’ll see in examples tend to be “squashed” together in... click; the package name to look for is mercurial • Ubuntu and Debian: apt-get install mercurial • Fedora: 13 yum install mercurial • OpenSUSE: zypper install mercurial • Gentoo: emerge mercurial Solaris SunFreeWare, at http://www.sunfreeware.com, provides prebuilt packages of Mercurial Getting Started To begin, we’ll use the hg version command to find out whether Mercurial is installed properly The actual... peer with the people who consider themselves the “core” of that project If they publish their repositories, you can immediately copy their project history, start making changes, and record your work, using the same tools in the same ways as insiders By contrast, with a centralized tool, you must use the software in a “read-only” mode unless someone grants you permission to commit changes to their central... changes from Mercurial to Subversion This makes it possible to try Subversion and Mercurial in parallel before committing to a switchover, without risking the loss of any work The convert command is easy to use Simply point it at the path or URL of the source repository, optionally give it the name of the destination repository, and it will start working After the initial conversion, just run the same... to install Mercurial binaries The version of Mercurial that you will end up with can vary depending on how active the person is who maintains the package for your distribution To keep things simple, I will focus on installing Mercurial from the command line under the most popular Linux distributions Most of these distributions provide graphical package managers that will let you install Mercurial with... familiar with the capabilities of their tools and constrained by their limitations Trends in the Field | 3 The first generation began by managing single files on individual computers Although these tools represented a huge advance over ad-hoc manual revision control, their locking model and reliance on a single computer limited them to small, tightly knit teams The second generation loosened these constraints... copy is often the same size as, or larger than, a Mercurial repository and working directory, even though theMercurial repository contains a complete history of the project Subversion is widely supported by third-party tools Mercurial currently lags considerably in this area This gap is closing, however, and indeed some of Mercurial s GUI tools now outshine their Subversion equivalents Like Mercurial, ... every file they intend to edit The performance of Perforce is quite good for small teams, but it falls off rapidly as the number of users grows beyond a few dozen Modestly large Perforce installations require the deployment of proxies to cope with the load their users generate Choosing a Revision Control Tool With the exception of CVS, all of the tools listed above have unique strengths that suit them to... xvii I developed this book in the open, posting drafts of chapters to the book website as I completed them Readers then submitted feedback using a web application that I developed By the time I finished writing the book, more than 100 people had submitted comments, an amazing number considering that the comment system was live for only about two months toward the end of the writing process I would particularly... case, the cost of using revision control might hardly seem worth considering, since without it, failure is almost guaranteed On the other hand, a one-person “quick hack” might seem like a poor place to use a revision control tool, because surely the cost of using one must be close to the overall cost of the project Right? Mercurial uniquely supports both of these scales of development You can learn the . alt="" Mercurial: The Definitive Guide Mercurial: The Definitive Guide Bryan O’Sullivan Beijing • Cambridge • Farnham • Köln • Sebastopol • Taipei • Tokyo Mercurial: The Definitive Guide by. in the open, posting drafts of chapters to the book website as I completed them. Readers then submitted feedback using a web application that I de- veloped. By the time I finished writing the. 208 Controlling the Guards on a Patch 209 Selecting the Guards to Use 210 MQ’s Rules for Applying Patches 211 Trimming the Work Environment 211 Dividing Up the Series File 211 Maintaining the Patch