Open main menu

CDOT Wiki β

Changes

User:Minooz/Mercurial

28 bytes removed, 11:14, 30 September 2010
Challenges
==Challenges==
* 1- First challenge was is how to trim history of a repository.
: We have a Mercurial repository called A. We want to clone repo A and create a new repo called B.
: It's possible to use 'init' and create a new repo and just copy the files from repo A and add them.
: This way the revision number will reset. And we will start repo B from the tip of the repo A.
: The problem appears if we want to clone just the tip of the repo A and keep the same revision number of the 'tip'.
: Here are some links that we did went through, but still we didn't find any way to do itno success yet.
:[http://mercurial.selenic.com/wiki/EditingHistory Trimming History]
:[http://www.selenic.com/mercurial/hgrc.5.html .hgrc file]
:[http://mercurial.selenic.com/wiki/TipsAndTricks mq strip changeset]
1
edit