hgext/__init__.py
author Jun Wu <quark@fb.com>
Wed, 22 Jun 2016 18:22:17 +0100
changeset 1714 4565b046b850
parent 1619 5ef77a1d975c
permissions -rw-r--r--
directaccess: make sure gethashsymbols does not return rev numbers With "hg log -r 1 -r 2 -r 3", gethashsymbols will get the following tree: ('func', ('symbol', '_list'), ('string', '1\x002\x003')) Before this patch, it will return ['1', '2', '3'], which are revision numbers and causes unnecessary (expensive) partialmatch lookups. This patch refacts gethashsymbols a bit, making sure the returning values are always filtered.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1619
5ef77a1d975c hgext: turn 'hgext' into a namespace package
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 519
diff changeset
     1
from __future__ import absolute_import
5ef77a1d975c hgext: turn 'hgext' into a namespace package
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 519
diff changeset
     2
import pkgutil
5ef77a1d975c hgext: turn 'hgext' into a namespace package
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 519
diff changeset
     3
__path__ = pkgutil.extend_path(__path__, __name__)
5ef77a1d975c hgext: turn 'hgext' into a namespace package
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 519
diff changeset
     4