Show More
@@ -866,10 +866,11 b' def getbundle(repo, proto, others):' | |||||
866 | if repo.ui.configbool('server', 'disablefullbundle'): |
|
866 | if repo.ui.configbool('server', 'disablefullbundle'): | |
867 | # Check to see if this is a full clone. |
|
867 | # Check to see if this is a full clone. | |
868 | clheads = set(repo.changelog.heads()) |
|
868 | clheads = set(repo.changelog.heads()) | |
|
869 | changegroup = opts.get('cg', True) | |||
869 | heads = set(opts.get('heads', set())) |
|
870 | heads = set(opts.get('heads', set())) | |
870 | common = set(opts.get('common', set())) |
|
871 | common = set(opts.get('common', set())) | |
871 | common.discard(nullid) |
|
872 | common.discard(nullid) | |
872 | if not common and clheads == heads: |
|
873 | if changegroup and not common and clheads == heads: | |
873 | raise error.Abort( |
|
874 | raise error.Abort( | |
874 | _('server has pull-based clones disabled'), |
|
875 | _('server has pull-based clones disabled'), | |
875 | hint=_('remove --pull if specified or upgrade Mercurial')) |
|
876 | hint=_('remove --pull if specified or upgrade Mercurial')) |
General Comments 0
You need to be logged in to leave comments.
Login now