changeset 49290 | 76f56d69a457 |
parent 48875 | 6000f5b25c9b |
child 49300 | 227124098e14 |
49289:6c4c341d8fa5 | 49290:76f56d69a457 |
---|---|
42 |
42 |
43 |
43 |
44 def fromgitnode(n): |
44 def fromgitnode(n): |
45 """Opposite of togitnode.""" |
45 """Opposite of togitnode.""" |
46 assert len(n) == 40 |
46 assert len(n) == 40 |
47 if pycompat.ispy3: |
|
48 return bin(n.encode('ascii')) |
|
49 return bin(n) |
47 return bin(n) |
50 |
48 |
51 |
49 |
52 nullgit = togitnode(sha1nodeconstants.nullid) |
50 nullgit = togitnode(sha1nodeconstants.nullid) |