##// END OF EJS Templates
exchange: switch to usual way of testing for bundle2-ness...
Martin von Zweigbergk -
r32891:7e2eb964 default
parent child Browse files
Show More
@@ -1731,7 +1731,7 b' def unbundle(repo, cg, heads, source, ur'
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)
General Comments 0
You need to be logged in to leave comments. Login now