Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/pure/parsers.py @ 24634:4ece2847cf4c
parsers: remove unused dependency on util
Parsers.py had a reference to util.sha1 which was unused. This commit removes
this reference as well as the unused import of util to simplify the dependency
graph. This is important for the next commit which actually relocates part
of a module to eliminate a cycle.
author | Drew Gottlieb <drgott@google.com> |
---|---|
date | Mon, 06 Apr 2015 13:59:36 -0700 |
parents | feddc5284724 |
children | 6ab8c6511a6a |
comparison
equal
deleted
inserted
replaced
24633:2f8f7cc6a53b | 24634:4ece2847cf4c |
---|---|
4 # | 4 # |
5 # This software may be used and distributed according to the terms of the | 5 # This software may be used and distributed according to the terms of the |
6 # GNU General Public License version 2 or any later version. | 6 # GNU General Public License version 2 or any later version. |
7 | 7 |
8 from mercurial.node import nullid | 8 from mercurial.node import nullid |
9 from mercurial import util | |
10 import struct, zlib, cStringIO | 9 import struct, zlib, cStringIO |
11 | 10 |
12 _pack = struct.pack | 11 _pack = struct.pack |
13 _unpack = struct.unpack | 12 _unpack = struct.unpack |
14 _compress = zlib.compress | 13 _compress = zlib.compress |
15 _decompress = zlib.decompress | 14 _decompress = zlib.decompress |
16 _sha = util.sha1 | |
17 | 15 |
18 # Some code below makes tuples directly because it's more convenient. However, | 16 # Some code below makes tuples directly because it's more convenient. However, |
19 # code outside this module should always use dirstatetuple. | 17 # code outside this module should always use dirstatetuple. |
20 def dirstatetuple(*x): | 18 def dirstatetuple(*x): |
21 # x is a tuple | 19 # x is a tuple |