LarsA
LarsA

Reputation: 637

hg bundle revset - not change found

We are trying to bundle part of a repository.

The following command: hg bundle -r 1:11 bundle.hg produces the output "Searching for changes. No change found".

If we reuse the same revset with another command, hg log -r 1:11 the expected list of changesets is displayed.

Using hg bundle -a bundle.hg works fine.

Using HG 3.8.4 on Windows 7.

Upvotes: 0

Views: 155

Answers (1)

Sigve Kolbeinson
Sigve Kolbeinson

Reputation: 1161

In hg bundle's documentation, there is the following paragraph:

To create a bundle containing all changesets, use -a/--all (or --base null). Otherwise, hg assumes the destination will have all the nodes you specify with --base parameters. Otherwise, hg will assume the repository has all the nodes in destination, or default-push/default if no destination is specified.

It reads a little bit like a nested if-statement, so let me paraphrase it.

  • If you specify -a or --all (or --base null on its own), you'll bundle all the changesets

  • If you haven't specified -a or --all, you can specify which nodes are present at the destination using --base

  • If you've done neither of the above, Mercurial assumes the changesets present at the specified destination, if any, or default-push/default

Your attempt, hg bundle -r 1:11 bundle.hg, is in the last category, and I suspect that all nodes in the revset are present at default-push/default.

Try amending your command to hg bundle -r 1:11 --base null bundle.hg

Upvotes: 1

Related Questions