contrib/nopushpublish.py
branchmercurial-3.5
changeset 1698 dd6f090b7342
parent 1670 4f5e915ddb71
equal deleted inserted replaced
1606:c2739551ea4e 1698:dd6f090b7342
    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):