However, it often increases the transferred data size by 30-40%. This significantly reduces the CPU cost of a clone both remotely and locally. stream activates a different clone mode that essentially copies repository files from the remote with minimal data processing. In normal clone mode, the remote normalizes repository data into a common exchange format and the receiving end translates this data into its local storage format. These options (or 'clone src#rev dest') imply -pull, even for local source repositories. The resulting clone will contain only the specified changesets and their ancestors. To pull only a subset of changesets, specify one or more revisions identifiers with -r/-rev or branches with -b/-branch. To check out a particular version, use -u/-update, or -U/-noupdate to create a clone with no working directory. If the source repository has a bookmark called set, that revision will be checked out in the new repository by default. hg/hgrc will be created on the remote side. For ssh:// destinations, no working directory or. Only local paths and ssh:// URLs are supported as destinations. hg/hgrc file, as the default to be used for future pulls. The location of the source is added to the new repository's. If no destination directory name is specified, it defaults to the basename of the source. SOURCE Ĭreate a copy of an existing repository in a new directory.
Use hooks to perform actions automatically in response to repository events.Find and fix mistakes by isolating problem sources.Manage a project that's making progress on multiple fronts at once.Get examples and tools for setting up various workflow models.Set up Mercurial to work with files on a daily basis, including which ones to track.Merge changes from separate repositories.Learn the basics of working with a repository, changesets, and revisions.Mercurial permits a countless variety of development and collaboration methods, and this book offers several concrete suggestions to get you started. And it's a very flexible tool that's ideal whether you're a lone programmer working on a small project, or part of a huge team dealing with thousands of files. Mercurial is the easiest system to learn when it comes to distributed revision control.
Mercurial windows hook on commit add comment mac os#
This instructive book takes you step by step through ways to track, merge, and manage both open source and commercial software projects with Mercurial, using Windows, Mac OS X, Linux, Solaris, and other systems.