schacon/hg-git

No support for push -f

Closed this issue · 4 comments

i'd like to obliterate my git repo on push (a'la git push -f), it doesn't appear that hggit supports this. it's basically required when your remote git is out of sync with the hg repo, and one doesn't care about the remote git repo's state.

In order not to lose your data, you need to pull from the server, push -f and then use hg strip locally. I think this still works. (this should be documented somewhere)

i actually do want to lose my remote git data. it's meaningless/confusing. my history is kept in hg.

I hope you've understood what I said : this is a safety measure so you don't lose your history by mistake. If you want to lose your history, nothing prevents you from doing so : pull the unwanted changesets, then push -f to delete them on the server, then use strip to delete them locally.

yeah, i really, really don't care about what's in the remote git (think heroku). in fact, the git history is more confusing than anything in such a situation.