Skip to content
Snippets Groups Projects
  • Durham Goode's avatar
    645e78845383
    bundle: exit early when there are no commits to bundle · 645e78845383
    Durham Goode authored
    Previously, if you passed a revset that resolved to no nodes, it would get
    interpreted by the changegroup discovery logic as 'bundle all my heads', which
    is not what the user asked.
    
    Let's exit early when we notice this case.
    
    It could be argued that the changeset discovery logic should be smarter and only
    assume 'all heads' if the incoming heads parameter is None, but that's a much
    riskier change.
    645e78845383
    History
    bundle: exit early when there are no commits to bundle
    Durham Goode authored
    Previously, if you passed a revset that resolved to no nodes, it would get
    interpreted by the changegroup discovery logic as 'bundle all my heads', which
    is not what the user asked.
    
    Let's exit early when we notice this case.
    
    It could be argued that the changeset discovery logic should be smarter and only
    assume 'all heads' if the incoming heads parameter is None, but that's a much
    riskier change.
test-bundle.t 17.65 KiB