Mercurial > hg
comparison mercurial/node.py @ 43077:687b865b95ad
formatting: byteify all mercurial/ and hgext/ string literals
Done with
python3.7 contrib/byteify-strings.py -i $(hg files 'set:mercurial/**.py - mercurial/thirdparty/** + hgext/**.py - hgext/fsmonitor/pywatchman/** - mercurial/__init__.py')
black -l 80 -t py33 -S $(hg files 'set:**.py - mercurial/thirdparty/** - "contrib/python-zstandard/**" - hgext/fsmonitor/pywatchman/**')
# skip-blame mass-reformatting only
Differential Revision: https://phab.mercurial-scm.org/D6972
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 06 Oct 2019 09:48:39 -0400 |
parents | 57875cf423c9 |
children | 6266d19556ad |
comparison
equal
deleted
inserted
replaced
43076:2372284d9457 | 43077:687b865b95ad |
---|---|
27 nullhex = hex(nullid) | 27 nullhex = hex(nullid) |
28 | 28 |
29 # Phony node value to stand-in for new files in some uses of | 29 # Phony node value to stand-in for new files in some uses of |
30 # manifests. | 30 # manifests. |
31 # In hex, this is '2121212121212121212121212121212121212121' | 31 # In hex, this is '2121212121212121212121212121212121212121' |
32 newnodeid = '!!!!!!!!!!!!!!!!!!!!' | 32 newnodeid = b'!!!!!!!!!!!!!!!!!!!!' |
33 # In hex, this is '3030303030303030303030303030306164646564' | 33 # In hex, this is '3030303030303030303030303030306164646564' |
34 addednodeid = '000000000000000added' | 34 addednodeid = b'000000000000000added' |
35 # In hex, this is '3030303030303030303030306d6f646966696564' | 35 # In hex, this is '3030303030303030303030306d6f646966696564' |
36 modifiednodeid = '000000000000modified' | 36 modifiednodeid = b'000000000000modified' |
37 | 37 |
38 wdirfilenodeids = {newnodeid, addednodeid, modifiednodeid} | 38 wdirfilenodeids = {newnodeid, addednodeid, modifiednodeid} |
39 | 39 |
40 # pseudo identifiers for working directory | 40 # pseudo identifiers for working directory |
41 # (they are experimental, so don't add too many dependencies on them) | 41 # (they are experimental, so don't add too many dependencies on them) |