Sheriffing/How To/Unified Repos: Difference between revisions

Jump to navigation Jump to search
m
add missing *
(default to histedit to correct repository and use hg strip -r . to remove merge commits)
m (add missing *)
Line 187: Line 187:
* hg histedit
* hg histedit
If a merge commit needs to be removed:
If a merge commit needs to be removed:
hg strip --no-backup -r .
* hg strip --no-backup -r .
<big>WARNING:</big> The hg strip command below removes any commits that haven't been pushed to the remote repositories, regardless of what branch/label/tag those commits are on. (So if you have local changes as patches for other issues - even based on other trees - they will be removed.) Only do this if you don't care about any of those commits!
<big>WARNING:</big> The hg strip command below removes any commits that haven't been pushed to the remote repositories, regardless of what branch/label/tag those commits are on. (So if you have local changes as patches for other issues - even based on other trees - they will be removed.) Only do this if you don't care about any of those commits!
* hg strip --no-backup 'not public()'
* hg strip --no-backup 'not public()'
Confirmed users
600

edits

Navigation menu