Mercurial > public > mercurial-scm > hg
comparison mercurial/node.py @ 32291:bd872f64a8ba
cleanup: use set literals
We no longer support Python 2.6, so we can now use set literals.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 10 Feb 2017 16:56:29 -0800 |
parents | 1070df141718 |
children | af854b1b36f8 |
comparison
equal
deleted
inserted
replaced
32290:2959c3e986e0 | 32291:bd872f64a8ba |
---|---|
21 # manifests. | 21 # manifests. |
22 newnodeid = '!' * 20 | 22 newnodeid = '!' * 20 |
23 addednodeid = ('0' * 15) + 'added' | 23 addednodeid = ('0' * 15) + 'added' |
24 modifiednodeid = ('0' * 12) + 'modified' | 24 modifiednodeid = ('0' * 12) + 'modified' |
25 | 25 |
26 wdirnodes = set((newnodeid, addednodeid, modifiednodeid)) | 26 wdirnodes = {newnodeid, addednodeid, modifiednodeid} |
27 | 27 |
28 # pseudo identifiers for working directory | 28 # pseudo identifiers for working directory |
29 # (they are experimental, so don't add too many dependencies on them) | 29 # (they are experimental, so don't add too many dependencies on them) |
30 wdirrev = 0x7fffffff | 30 wdirrev = 0x7fffffff |
31 wdirid = b"\xff" * 20 | 31 wdirid = b"\xff" * 20 |