mercurial/exchange.py
changeset 32891 7e2eb964a561
parent 32845 58a6f64a7018
child 32896 e14484e7f562
equal deleted inserted replaced
32890:20fc5d39d0c1 32891:7e2eb964a561
  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