Skip to content

Commit

Permalink
Don't force public pushes
Browse files Browse the repository at this point in the history
This is something that needs to explicitly happen.

Signed-off-by: Felipe Contreras <[email protected]>
  • Loading branch information
felipec committed May 5, 2023
1 parent 451e310 commit b274b80
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions git-remote-hg
Original file line number Diff line number Diff line change
Expand Up @@ -1049,15 +1049,7 @@ def push(repo, remote, parsed_refs, p_revs):

if force:
remoteheads = [b'force']
ret = remote.unbundle(cg, remoteheads, b'push')

phases = remote.listkeys(b'phases')
if phases:
for head in p_revs:
# update to public
remote.pushkey(b'phases', hghex(head), b'1', b'0')

return ret
return remote.unbundle(cg, remoteheads, b'push')

def check_tip(ref, kind, name, heads):
try:
Expand Down

0 comments on commit b274b80

Please sign in to comment.