# HG changeset patch # User Franz Glasner # Date 1758300763 -7200 # Node ID a78c22e89a53ad7e186ba4506925548b87f5524f # Parent 575f70dbc2591ae7f83b7044c8e79366e4f1b7c1 Use long Mercurial options mostly diff -r 575f70dbc259 -r a78c22e89a53 setup.py --- a/setup.py Fri Sep 19 18:20:23 2025 +0200 +++ b/setup.py Fri Sep 19 18:52:43 2025 +0200 @@ -374,7 +374,7 @@ sha, comment, diff, branch = '', '', '', '' if os.path.isdir(os.path.join(directory, '.hg')): cp = subprocess.run( - f'hg -R {directory} id -i', + f'hg -R {directory} id --id', capture_output=1, shell=1, text=1, @@ -390,7 +390,7 @@ if cp.returncode == 0: diff = cp.stdout cp = subprocess.run( - f'hg -R {directory} log -r. --template "{{branch}}"', + f'hg -R {directory} log --rev . --template "{{branch}}"', capture_output=1, shell=1, text=1, @@ -398,7 +398,7 @@ if cp.returncode == 0: branch = cp.stdout.strip() fp = subprocess.run( - f'hg -R {directory} log -r. --template "{{desc|firstline}}"', + f'hg -R {directory} log --rev . --template "{{desc|firstline}}"', capture_output=1, shell=1, text=1,