Mercurial > hg
comparison tests/test-filelog.py @ 20684:2761a791b113
test-filelog: move from dict() construction to {} literals
The latter are both faster and more consistent across Python 2 and 3.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Wed, 12 Mar 2014 13:21:02 -0400 |
parents | 73e3e368bd42 |
children | ce26928cbe41 |
comparison
equal
deleted
inserted
replaced
20683:6cb419dd3703 | 20684:2761a791b113 |
---|---|
11 fl = repo.file('foobar') | 11 fl = repo.file('foobar') |
12 | 12 |
13 def addrev(text, renamed=False): | 13 def addrev(text, renamed=False): |
14 if renamed: | 14 if renamed: |
15 # data doesn't matter. Just make sure filelog.renamed() returns True | 15 # data doesn't matter. Just make sure filelog.renamed() returns True |
16 meta = dict(copyrev=hex(nullid), copy='bar') | 16 meta = {'copyrev': hex(nullid), 'copy': 'bar'} |
17 else: | 17 else: |
18 meta = {} | 18 meta = {} |
19 | 19 |
20 lock = t = None | 20 lock = t = None |
21 try: | 21 try: |