Mercurial > hg > hg-git
comparison hggit/overlay.py @ 965:b867b5f0a63a
overlay: regularize mercurial imports
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Thu, 31 Dec 2015 12:37:40 -0800 |
parents | db308eba5251 |
children | 07473e474bc4 |
comparison
equal
deleted
inserted
replaced
964:5db7e2be619e | 965:b867b5f0a63a |
---|---|
2 # unifies access to unimported git objects and committed hg objects | 2 # unifies access to unimported git objects and committed hg objects |
3 # designed to support incoming | 3 # designed to support incoming |
4 # | 4 # |
5 # incomplete, implemented on demand | 5 # incomplete, implemented on demand |
6 | 6 |
7 from mercurial import ancestor | 7 from mercurial import ( |
8 from mercurial import manifest | 8 ancestor, |
9 from mercurial import context | 9 manifest, |
10 context, | |
11 ) | |
10 from mercurial.node import bin, hex, nullid | 12 from mercurial.node import bin, hex, nullid |
11 | 13 |
12 def _maybehex(n): | 14 def _maybehex(n): |
13 if len(n) == 20: | 15 if len(n) == 20: |
14 return hex(n) | 16 return hex(n) |