Patchwork [14,of,22] obsstore: do not convert markers to list in _all

login
register
mail settings
Submitter Jun Wu
Date June 4, 2017, 11:59 p.m.
Message ID <31f6eafaf9ce5d4ac95c.1496620766@x1c>
Download mbox | patch
Permalink /patch/21191/
State Accepted
Headers show

Comments

Jun Wu - June 4, 2017, 11:59 p.m.
# HG changeset patch
# User Jun Wu <quark@fb.com>
# Date 1496596958 25200
#      Sun Jun 04 10:22:38 2017 -0700
# Node ID 31f6eafaf9ce5d4ac95ce289735b8f4ae692e4ae
# Parent  a159006b556c924bc0b9cb01c251574b44383063
# Available At https://bitbucket.org/quark-zju/hg-draft
#              hg pull https://bitbucket.org/quark-zju/hg-draft -r 31f6eafaf9ce
obsstore: do not convert markers to list in _all

_readmarkers now returns a list directly.

Patch

diff --git a/mercurial/obsolete.py b/mercurial/obsolete.py
--- a/mercurial/obsolete.py
+++ b/mercurial/obsolete.py
@@ -709,5 +709,4 @@  class obsstore(object):
             return []
         self._version, markers = _readmarkers(data)
-        markers = list(markers)
         _checkinvalidmarkers(markers)
         return markers