mirror of
https://github.com/mnauw/git-remote-hg.git
synced 2025-11-03 01:55:49 +01:00
Don't force public pushes
This is something that needs to explicitly happen. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user