Skip to content

Commit

Permalink
Add debug statements for mercurial output.
Browse files Browse the repository at this point in the history
  • Loading branch information
hsorby committed Oct 16, 2023
1 parent b0056cf commit 79425bb
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/pmr2/wfctrl/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,7 @@ def pull(self, workspace, username=None, password=None, **kw):
output = self.execute(*args)
print("mercurial pull:")
print(output)
return_code = 0
if output[1]:
return_code = 1
return '\n'.join(output[0]).encode(), output[1], return_code
return output

def push(self, workspace, username=None, password=None, **kw):
# XXX origin may be undefined
Expand All @@ -129,10 +126,7 @@ def push(self, workspace, username=None, password=None, **kw):
output = self.execute(*args)
print("mercurial push:")
print(output)
return_code = 0
if output[1]:
return_code = 1
return '\n'.join(output[0]).encode(), output[1], return_code
return output

def reset_to_remote(self, workspace, branch=None):
if branch is None:
Expand Down

0 comments on commit 79425bb

Please sign in to comment.