by Andrew Pritchard <andrewp@fogcreek.com>
Changes to 3 files · Browse files at 1219d6bbab5f Showing diff from parent 9818ca264760 cc99a8e6e2eb Diff from another changeset...
@@ -89,8 +89,7 @@ # in this case: send the data straight through
else:
try:
- ret, output = self._callpush("putlfile", fd, sha=sha,
- headers={'content-type':'application/mercurial-0.1'})
+ ret, output = self._callpush("putlfile", fd, sha=sha)
if ret == "":
raise error.ResponseError(_('putlfile failed:'),
output)
|
@@ -394,9 +394,8 @@ repo.__class__ = lfiles_repo
def checkrequireslfiles(ui, repo, **kwargs):
- if 'largefiles' not in repo.requirements and lfutil.any_(lfutil.shortname+'/' in f[0] \
- for f in repo.store.datafiles()):
-
+ if 'largefiles' not in repo.requirements and lfutil.any_(
+ lfutil.shortname+'/' in f[0] for f in repo.store.datafiles()):
# work around bug in mercurial 1.9 whereby requirements is a list
# on newly-cloned repos
repo.requirements = set(repo.requirements)
@@ -406,5 +405,5 @@
checkrequireslfiles(ui, repo)
- ui.setconfig('hooks', 'incoming.lfiles', checkrequireslfiles)
+ ui.setconfig('hooks', 'changegroup.lfiles', checkrequireslfiles)
ui.setconfig('hooks', 'commit.lfiles', checkrequireslfiles)
|
Loading...