Created
October 24, 2014 07:50
-
-
Save jarosite/d2729a19e718edbfaad6 to your computer and use it in GitHub Desktop.
If you get 400 on pull from mercurial, while push is working, probably you have a lot of closed branches but not merged anywhere. Create trash branch, and run this script.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for /F %%x in ('hg log -r "heads(all()) and closed()" --template "{rev}"\n') do (call :merge "%%x") | |
GOTO :eof | |
:merge | |
hg --config ui.merge=internal:local -y merge --rev %1 | |
hg commit -m merge | |
GOTO :eof |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment