Patchwork D7468: phases: make `allphases` a list on py3 also

login
register
mail settings
Submitter phabricator
Date Nov. 22, 2019, 2:51 a.m.
Message ID <e8a7c8db122a21f4687e4a026ccee32b@localhost.localdomain>
Download mbox | patch
Permalink /patch/43402/
State Not Applicable
Headers show

Comments

phabricator - Nov. 22, 2019, 2:51 a.m.
Closed by commit rHGd18cf63e1dbd: phases: make `allphases` a list on py3 also (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7468?vs=18266&id=18272

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

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

AFFECTED FILES
  mercurial/phases.py

CHANGE DETAILS




To: mharbison72, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

diff --git a/mercurial/phases.py b/mercurial/phases.py
--- a/mercurial/phases.py
+++ b/mercurial/phases.py
@@ -134,7 +134,7 @@ 
 public, draft, secret = range(3)
 internal = INTERNAL_FLAG | HIDEABLE_FLAG
 archived = HIDEABLE_FLAG
-allphases = range(internal + 1)
+allphases = list(range(internal + 1))
 trackedphases = allphases[1:]
 # record phase names
 cmdphasenames = [b'public', b'draft', b'secret']  # known to `hg phase` command