contrib/nopushpublish.py
branchmercurial-3.4
changeset 1700 05d7df73a56b
parent 1670 4f5e915ddb71
equal deleted inserted replaced
1699:9b1bec442496 1700:05d7df73a56b
    25     if npublish:
    25     if npublish:
    26         repo.ui.warn("Push would publish %s changesets" % npublish)
    26         repo.ui.warn("Push would publish %s changesets" % npublish)
    27 
    27 
    28     ret = orig(repo, remote, outgoing, *args)
    28     ret = orig(repo, remote, outgoing, *args)
    29     if npublish:
    29     if npublish:
    30         raise util.Abort("Publishing push forbiden",
    30         raise util.Abort("Publishing push forbidden",
    31                          hint="Use `hg phase -p <rev>` to manually publish them")
    31                          hint="Use `hg phase -p <rev>` to manually publish them")
    32 
    32 
    33     return ret
    33     return ret
    34 
    34 
    35 def uisetup(ui):
    35 def uisetup(ui):