Mercurial > hgrepos > Python2 > PyMuPDF
comparison setup.py @ 26:a78c22e89a53
Use long Mercurial options mostly
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Fri, 19 Sep 2025 18:52:43 +0200 |
| parents | 575f70dbc259 |
| children | 28f7eb8e96ac |
comparison
equal
deleted
inserted
replaced
| 25:575f70dbc259 | 26:a78c22e89a53 |
|---|---|
| 372 Root of git checkout. | 372 Root of git checkout. |
| 373 ''' | 373 ''' |
| 374 sha, comment, diff, branch = '', '', '', '' | 374 sha, comment, diff, branch = '', '', '', '' |
| 375 if os.path.isdir(os.path.join(directory, '.hg')): | 375 if os.path.isdir(os.path.join(directory, '.hg')): |
| 376 cp = subprocess.run( | 376 cp = subprocess.run( |
| 377 f'hg -R {directory} id -i', | 377 f'hg -R {directory} id --id', |
| 378 capture_output=1, | 378 capture_output=1, |
| 379 shell=1, | 379 shell=1, |
| 380 text=1, | 380 text=1, |
| 381 ) | 381 ) |
| 382 if cp.returncode == 0: | 382 if cp.returncode == 0: |
| 388 text=1, | 388 text=1, |
| 389 ) | 389 ) |
| 390 if cp.returncode == 0: | 390 if cp.returncode == 0: |
| 391 diff = cp.stdout | 391 diff = cp.stdout |
| 392 cp = subprocess.run( | 392 cp = subprocess.run( |
| 393 f'hg -R {directory} log -r. --template "{{branch}}"', | 393 f'hg -R {directory} log --rev . --template "{{branch}}"', |
| 394 capture_output=1, | 394 capture_output=1, |
| 395 shell=1, | 395 shell=1, |
| 396 text=1, | 396 text=1, |
| 397 ) | 397 ) |
| 398 if cp.returncode == 0: | 398 if cp.returncode == 0: |
| 399 branch = cp.stdout.strip() | 399 branch = cp.stdout.strip() |
| 400 fp = subprocess.run( | 400 fp = subprocess.run( |
| 401 f'hg -R {directory} log -r. --template "{{desc|firstline}}"', | 401 f'hg -R {directory} log --rev . --template "{{desc|firstline}}"', |
| 402 capture_output=1, | 402 capture_output=1, |
| 403 shell=1, | 403 shell=1, |
| 404 text=1, | 404 text=1, |
| 405 ) | 405 ) |
| 406 if cp.returncode == 0: | 406 if cp.returncode == 0: |
