Browse Source

client: update to dulwich 0.19+

Kevin Bullock 4 years ago
parent
commit
c40adb63b4
2 changed files with 4 additions and 3 deletions
  1. +3
    -2
      hggit/git_handler.py
  2. +1
    -1
      setup.py

+ 3
- 2
hggit/git_handler.py View File

@ -1079,7 +1079,7 @@ class GitHandler(object):
exportable[rev] = all_exportable[rev]
return self.get_changed_refs(refs, exportable, force)
def genpack(have, want):
def genpack(have, want, progress=None, ofs_delta=True):
commits = []
for mo in self.git.object_store.find_missing_objects(have, want):
(sha, name) = mo
@ -1095,7 +1095,8 @@ class GitHandler(object):
for commit in commits:
self.ui.debug("%s\n" % commit)
self.ui.status(_("adding objects\n"))
return self.git.object_store.generate_pack_contents(have, want)
return self.git.object_store.generate_pack_data(
have, want, progress=progress, ofs_delta=ofs_delta)
def callback(remote_info):
# dulwich (perhaps git?) wraps remote output at a fixed width but


+ 1
- 1
setup.py View File

@ -37,5 +37,5 @@ project that is in Git. A bridger of worlds, this plugin be.
packages=['hggit'],
package_data={'hggit': ['help/git.rst']},
include_package_data=True,
install_requires=['dulwich>=0.9.7'] + extra_req,
install_requires=['dulwich>=0.19.0'] + extra_req,
)

Loading…
Cancel
Save