Skip to content

Instantly share code, notes, and snippets.

@stepancheg
Created May 2, 2009 13:43
Show Gist options
  • Save stepancheg/105561 to your computer and use it in GitHub Desktop.
Save stepancheg/105561 to your computer and use it in GitHub Desktop.
diff -r 8dc6481b5d93 dulwich/pack.py
--- a/dulwich/pack.py Fri May 01 20:16:07 2009 -0700
+++ b/dulwich/pack.py Sat May 02 17:42:53 2009 +0400
@@ -30,6 +30,9 @@
a pointer in to the corresponding packfile.
"""
+from mercurial import demandimport
+demandimport.disable()
+
try:
from collections import defaultdict
except ImportError:
@@ -60,6 +63,7 @@
sha_to_hex,
)
from misc import make_sha
+demandimport.enable()
supports_mmap_offset = (sys.version_info[0] >= 3 or
(sys.version_info[0] == 2 and sys.version_info[1] >= 6))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment