Patchwork D3786: py3: use '%d' for os.stat_result.st_nlink instead of '%s'

login
register
mail settings
Submitter phabricator
Date June 18, 2018, 12:33 p.m.
Message ID <55fa15d2a98d6be858876990fdb877cd@localhost.localdomain>
Download mbox | patch
Permalink /patch/32257/
State Not Applicable
Headers show

Comments

phabricator - June 18, 2018, 12:33 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG06c85cbd6824: py3: use &#039;%d&#039; for os.stat_result.st_nlink instead of &#039;%s&#039; (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3786?vs=9157&id=9169

REVISION DETAIL
  https://phab.mercurial-scm.org/D3786

AFFECTED FILES
  tests/f

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/tests/f b/tests/f
--- a/tests/f
+++ b/tests/f
@@ -84,7 +84,7 @@ 
             if opts.mode and not islink:
                 facts.append(b'mode=%o' % (stat.st_mode & 0o777))
             if opts.links:
-                facts.append(b'links=%s' % stat.st_nlink)
+                facts.append(b'links=%d' % stat.st_nlink)
             if opts.newer:
                 # mtime might be in whole seconds so newer file might be same
                 if stat.st_mtime >= os.stat(opts.newer).st_mtime: