简体   繁体   中英

Mercurial Merge

A coworker merged a bunch of files that broke the build. I need to revert back to a working version and then commit that version in. I want to do the whole tree.

To get Reversion: "Hg update 4" This will retrive the reversion 4 of the files.

I'm not sure how I would commit the changes and erase whatever was checked in.

Note: It would take too long to go to each file and do a merge, so i'm looking to revert the whole tree.

I'm also using tortoise HG.

Any advice would be appreciated. Thanks, D

hg up -r 4
<some edits>
hg ci -m "This is correct"
hg push -f

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM