Skip to content
Snippets Groups Projects
Commit 3c5b66d0 authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

setup: make debug simpler by adding a `__repr__` to `hgcommand`

This help when trying to debug this logic.
parent ac3859a8
No related branches found
No related tags found
1 merge request!715small improvement to setup.py
......@@ -221,6 +221,9 @@
self.cmd = cmd
self.env = env
def __repr__(self):
return f"<hgcommand cmd={self.cmd} env={self.env}>"
def run(self, args):
cmd = self.cmd + args
returncode, out, err = runcmd(cmd, self.env)
......@@ -1821,5 +1824,5 @@
'welcome': 'contrib/packaging/macosx/Welcome.html',
},
},
**extra
**extra,
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment