I am aware that rollbacks can remove commits from the latest changeset in a local repository. However, is it possible to remove all the latest commits since the previous push without having to re-clone the share repository?
相关问题
- Upload linux binary file to maven repository
- Autocommit with PDO
- Correct procedure to use pending branch changes in
- Mercurial compared to private branches in SVN
- How to abandon all Mercurial changes that haven
相关文章
- Mercurial Commit Charts / Graphs [closed]
- What is the tortoisehg gui equivalent of doing “hg
- How to use Mercurial from Visual Studio 2010?
- Is there a version control system abstraction for
- Mercurial discard local changes of a file or group
- Mercurial .hgignore Negative Lookahead
- How to keep Stored Procedures and other scripts in
- Error in git: You can only push your own commits i
If you are using mercurial eclipse, you can rollback once, then shelve those changes, then export the multiple sequential commits as patches, strip those commits, then import those patches in the same order, so in case you had conflicting patches, they overwrite each other in the desired way.
Finally you can unshelve your first rollback. This achieves the same effect as if you were rolling back more than once.
You could make a new repo with
hg clone
:You can use the
hg strip
command, part of themq
extension:This will remove that revision + all its descendants.
Before you try this, make a copy/clone of the repository to experiment in.