D8108: tags: use modern // operator for division

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

D8108: tags: use modern // operator for division

martinvonz (Martin von Zweigbergk)
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  Fixes a test on Python 3.
 
  1. skip-blame only correcting a division operator, not a substantive change

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  mercurial/tags.py

CHANGE DETAILS

diff --git a/mercurial/tags.py b/mercurial/tags.py
--- a/mercurial/tags.py
+++ b/mercurial/tags.py
@@ -721,7 +721,7 @@
         self._dirtyoffset = None
 
         rawlentokeep = min(
-            wantedlen, (rawlen / _fnodesrecsize) * _fnodesrecsize
+            wantedlen, (rawlen // _fnodesrecsize) * _fnodesrecsize
         )
         if rawlen > rawlentokeep:
             # There's no easy way to truncate array instances. This seems



To: durin42, #hg-reviewers
Cc: mercurial-devel
_______________________________________________
Mercurial-devel mailing list
[hidden email]
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
Reply | Threaded
Open this post in threaded view
|

D8108: tags: use modern // operator for division

martinvonz (Martin von Zweigbergk)
Closed by commit rHG8ec186c1ccfe: tags: use modern // operator for division (authored by durin42).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8108?vs=20128&id=20141

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8108/new/

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

AFFECTED FILES
  mercurial/tags.py

CHANGE DETAILS

diff --git a/mercurial/tags.py b/mercurial/tags.py
--- a/mercurial/tags.py
+++ b/mercurial/tags.py
@@ -721,7 +721,7 @@
         self._dirtyoffset = None
 
         rawlentokeep = min(
-            wantedlen, (rawlen / _fnodesrecsize) * _fnodesrecsize
+            wantedlen, (rawlen // _fnodesrecsize) * _fnodesrecsize
         )
         if rawlen > rawlentokeep:
             # There's no easy way to truncate array instances. This seems



To: durin42, #hg-reviewers, pulkit
Cc: mercurial-devel
_______________________________________________
Mercurial-devel mailing list
[hidden email]
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel