/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to dulwich/pack.py

  • Committer: Jelmer Vernooij
  • Date: 2008-12-11 10:52:43 UTC
  • mto: (0.215.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@samba.org-20081211105243-dokx6i1dofwnlrrm
Add simple pack dump utility.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
    ret += chr(int(hex[i:i+2], 16))
54
54
  return ret
55
55
 
 
56
def sha_to_hex(sha):
 
57
  ret = ""
 
58
  for i in sha:
 
59
      ret += "%02x" % ord(i)
 
60
  return ret
 
61
 
56
62
MAX_MMAP_SIZE = 256 * 1024 * 1024
57
63
 
58
64
def simple_mmap(f, offset, size, access=mmap.ACCESS_READ):