# HG changeset patch # User Pierre-Yves David # Date 2023-12-01 21:13:37 # Node ID 3c5b66d03c37acf677925191f46a188dd3305bf3 # Parent ac3859a8b79604f0039cfc700170a50f0595322f setup: make debug simpler by adding a `__repr__` to `hgcommand` This help when trying to debug this logic. diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -221,6 +221,9 @@ class hgcommand: self.cmd = cmd self.env = env + def __repr__(self): + return f"" + def run(self, args): cmd = self.cmd + args returncode, out, err = runcmd(cmd, self.env) @@ -1821,5 +1824,5 @@ setup( 'welcome': 'contrib/packaging/macosx/Welcome.html', }, }, - **extra + **extra, )