equal
deleted
inserted
replaced
1729 try: |
1729 try: |
1730 # note: outside bundle1, 'heads' is expected to be empty and this |
1730 # note: outside bundle1, 'heads' is expected to be empty and this |
1731 # 'check_heads' call wil be a no-op |
1731 # 'check_heads' call wil be a no-op |
1732 check_heads(repo, heads, 'uploading changes') |
1732 check_heads(repo, heads, 'uploading changes') |
1733 # push can proceed |
1733 # push can proceed |
1734 if not util.safehasattr(cg, 'params'): |
1734 if not isinstance(cg, bundle2.unbundle20): |
1735 # legacy case: bundle1 (changegroup 01) |
1735 # legacy case: bundle1 (changegroup 01) |
1736 with repo.lock(): |
1736 with repo.lock(): |
1737 r = cg.apply(repo, source, url) |
1737 r = cg.apply(repo, source, url) |
1738 else: |
1738 else: |
1739 r = None |
1739 r = None |