Tung
Tung

Reputation: 21

How to delete a remote branch in Mercurial?

Apparently strip only works on local branch but I want to delete a remote branch.

Anything equivalent to these git command for mercurial?
git push origin —delete [branch_name]
git branch -d [branch_name]

Upvotes: 2

Views: 3550

Answers (1)

planetmaker
planetmaker

Reputation: 6044

You cannot delete a remote branch ever.

Stripping and hist-editing is a strictly local operation. Thus you need access to the server and strip there (maybe that's possible via web-interface, e.g. on BitBucket).

The only exception is - to some degree - if the changesets are of phase draft AND the remote server is configured a non-publishing server. Then you can obsolete the changesets on the remote server (but not delete them either).

Upvotes: 5

Related Questions