Show More
@@ -21,20 +21,25 b' def bin(s):' | |||||
21 | raise TypeError(e) |
|
21 | raise TypeError(e) | |
22 |
|
22 | |||
23 | nullrev = -1 |
|
23 | nullrev = -1 | |
|
24 | # In hex, this is '0000000000000000000000000000000000000000' | |||
24 | nullid = b"\0" * 20 |
|
25 | nullid = b"\0" * 20 | |
25 | nullhex = hex(nullid) |
|
26 | nullhex = hex(nullid) | |
26 |
|
27 | |||
27 | # Phony node value to stand-in for new files in some uses of |
|
28 | # Phony node value to stand-in for new files in some uses of | |
28 | # manifests. |
|
29 | # manifests. | |
29 | newnodeid = '!' * 20 |
|
30 | # In hex, this is '2121212121212121212121212121212121212121' | |
30 | addednodeid = ('0' * 15) + 'added' |
|
31 | newnodeid = '!!!!!!!!!!!!!!!!!!!!' | |
31 | modifiednodeid = ('0' * 12) + 'modified' |
|
32 | # In hex, this is '0000000000000000000000000000006164646564' | |
|
33 | addednodeid = '000000000000000added' | |||
|
34 | # In hex, this is '0000000000000000000000006d6f646966696564' | |||
|
35 | modifiednodeid = '000000000000modified' | |||
32 |
|
36 | |||
33 | wdirfilenodeids = {newnodeid, addednodeid, modifiednodeid} |
|
37 | wdirfilenodeids = {newnodeid, addednodeid, modifiednodeid} | |
34 |
|
38 | |||
35 | # pseudo identifiers for working directory |
|
39 | # pseudo identifiers for working directory | |
36 | # (they are experimental, so don't add too many dependencies on them) |
|
40 | # (they are experimental, so don't add too many dependencies on them) | |
37 | wdirrev = 0x7fffffff |
|
41 | wdirrev = 0x7fffffff | |
|
42 | # In hex, this is 'ffffffffffffffffffffffffffffffffffffffff' | |||
38 | wdirid = b"\xff" * 20 |
|
43 | wdirid = b"\xff" * 20 | |
39 | wdirhex = hex(wdirid) |
|
44 | wdirhex = hex(wdirid) | |
40 |
|
45 |
General Comments 0
You need to be logged in to leave comments.
Login now