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

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Mon Jun 18 08:33:09 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG06c85cbd6824: py3: use '%d' for os.stat_result.st_nlink instead of '%s' (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

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:



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


More information about the Mercurial-devel mailing list