test-rebase-parameters.out
324 lines
| 13.7 KiB
| text/plain
|
TextLexer
/ tests / test-rebase-parameters.out
Stefano Tortarolo
|
r6906 | % These fail | ||
% Use continue and abort | ||||
hg rebase: cannot use both abort and continue | ||||
Greg Ward
|
r10646 | hg rebase [-s REV | -b REV] [-d REV] [options] | ||
hg rebase {-a|-c} | ||||
Stefano Tortarolo
|
r6906 | |||
move changeset (and descendants) to a different branch | ||||
Martin Geisler
|
r9073 | Rebase uses repeated merging to graft changesets from one part of history | ||
Greg Ward
|
r10646 | (the source) onto another (the destination). This can be useful for | ||
linearizing local changes relative to a master development tree. | ||||
If you don't specify a destination changeset ("-d/--dest"), rebase uses | ||||
the tipmost head of the current named branch as the destination. (The | ||||
destination changeset is not modified by rebasing, but new changesets are | ||||
added as its descendants.) | ||||
You can specify which changesets to rebase in two ways: as a "source" | ||||
changeset or as a "base" changeset. Both are shorthand for a topologically | ||||
related set of changesets (the "source branch"). If you specify source | ||||
("-s/--source"), rebase will rebase that changeset and all of its | ||||
descendants onto dest. If you specify base ("-b/--base"), rebase will | ||||
select ancestors of base back to but not including the common ancestor | ||||
with dest. Thus, "-b" is less precise but more convenient than "-s": you | ||||
can specify any changeset in the source branch, and rebase will select the | ||||
whole branch. If you specify neither "-s" nor "-b", rebase uses the parent | ||||
of the working directory as the base. | ||||
By default, rebase recreates the changesets in the source branch as | ||||
descendants of dest and then destroys the originals. Use "--keep" to | ||||
preserve the original source changesets. Some changesets in the source | ||||
branch (e.g. merges from the destination branch) may be dropped if they no | ||||
longer contribute any change. | ||||
One result of the rules for selecting the destination changeset and source | ||||
branch is that, unlike "merge", rebase will do nothing if you are at the | ||||
latest (tipmost) head of a named branch with two heads. You need to | ||||
explicitly specify source and/or destination (or "update" to the other | ||||
head, if it's the head of the intended source branch). | ||||
Stefano Tortarolo
|
r6906 | |||
Martin Geisler
|
r7999 | If a rebase is interrupted to manually resolve a merge, it can be | ||
Martin Geisler
|
r8076 | continued with --continue/-c or aborted with --abort/-a. | ||
Stefano Tortarolo
|
r6906 | |||
options: | ||||
Greg Ward
|
r10646 | -s --source rebase from the specified changeset | ||
-b --base rebase from the base of the specified changeset (up to | ||||
greatest common ancestor of base and dest) | ||||
-d --dest rebase onto the specified changeset | ||||
timeless@mozdev.org
|
r9589 | --collapse collapse the rebased changesets | ||
--keep keep original changesets | ||||
--keepbranches keep original branch names | ||||
Stefano Tortarolo
|
r10352 | --detach force detaching of source from its original branch | ||
Augie Fackler
|
r7468 | -c --continue continue an interrupted rebase | ||
-a --abort abort an interrupted rebase | ||||
--style display using template map file | ||||
--template display with template | ||||
Stefano Tortarolo
|
r6906 | |||
use "hg -v help rebase" to show global options | ||||
% Use continue and collapse | ||||
hg rebase: cannot use collapse with continue or abort | ||||
Greg Ward
|
r10646 | hg rebase [-s REV | -b REV] [-d REV] [options] | ||
hg rebase {-a|-c} | ||||
Stefano Tortarolo
|
r6906 | |||
move changeset (and descendants) to a different branch | ||||
Martin Geisler
|
r9073 | Rebase uses repeated merging to graft changesets from one part of history | ||
Greg Ward
|
r10646 | (the source) onto another (the destination). This can be useful for | ||
linearizing local changes relative to a master development tree. | ||||
If you don't specify a destination changeset ("-d/--dest"), rebase uses | ||||
the tipmost head of the current named branch as the destination. (The | ||||
destination changeset is not modified by rebasing, but new changesets are | ||||
added as its descendants.) | ||||
You can specify which changesets to rebase in two ways: as a "source" | ||||
changeset or as a "base" changeset. Both are shorthand for a topologically | ||||
related set of changesets (the "source branch"). If you specify source | ||||
("-s/--source"), rebase will rebase that changeset and all of its | ||||
descendants onto dest. If you specify base ("-b/--base"), rebase will | ||||
select ancestors of base back to but not including the common ancestor | ||||
with dest. Thus, "-b" is less precise but more convenient than "-s": you | ||||
can specify any changeset in the source branch, and rebase will select the | ||||
whole branch. If you specify neither "-s" nor "-b", rebase uses the parent | ||||
of the working directory as the base. | ||||
By default, rebase recreates the changesets in the source branch as | ||||
descendants of dest and then destroys the originals. Use "--keep" to | ||||
preserve the original source changesets. Some changesets in the source | ||||
branch (e.g. merges from the destination branch) may be dropped if they no | ||||
longer contribute any change. | ||||
One result of the rules for selecting the destination changeset and source | ||||
branch is that, unlike "merge", rebase will do nothing if you are at the | ||||
latest (tipmost) head of a named branch with two heads. You need to | ||||
explicitly specify source and/or destination (or "update" to the other | ||||
head, if it's the head of the intended source branch). | ||||
Stefano Tortarolo
|
r6906 | |||
Martin Geisler
|
r7999 | If a rebase is interrupted to manually resolve a merge, it can be | ||
Martin Geisler
|
r8076 | continued with --continue/-c or aborted with --abort/-a. | ||
Stefano Tortarolo
|
r6906 | |||
options: | ||||
Greg Ward
|
r10646 | -s --source rebase from the specified changeset | ||
-b --base rebase from the base of the specified changeset (up to | ||||
greatest common ancestor of base and dest) | ||||
-d --dest rebase onto the specified changeset | ||||
timeless@mozdev.org
|
r9589 | --collapse collapse the rebased changesets | ||
--keep keep original changesets | ||||
--keepbranches keep original branch names | ||||
Stefano Tortarolo
|
r10352 | --detach force detaching of source from its original branch | ||
Augie Fackler
|
r7468 | -c --continue continue an interrupted rebase | ||
-a --abort abort an interrupted rebase | ||||
--style display using template map file | ||||
--template display with template | ||||
Stefano Tortarolo
|
r6906 | |||
use "hg -v help rebase" to show global options | ||||
% Use continue/abort and dest/source | ||||
hg rebase: abort and continue do not allow specifying revisions | ||||
Greg Ward
|
r10646 | hg rebase [-s REV | -b REV] [-d REV] [options] | ||
hg rebase {-a|-c} | ||||
Stefano Tortarolo
|
r6906 | |||
move changeset (and descendants) to a different branch | ||||
Martin Geisler
|
r9073 | Rebase uses repeated merging to graft changesets from one part of history | ||
Greg Ward
|
r10646 | (the source) onto another (the destination). This can be useful for | ||
linearizing local changes relative to a master development tree. | ||||
If you don't specify a destination changeset ("-d/--dest"), rebase uses | ||||
the tipmost head of the current named branch as the destination. (The | ||||
destination changeset is not modified by rebasing, but new changesets are | ||||
added as its descendants.) | ||||
You can specify which changesets to rebase in two ways: as a "source" | ||||
changeset or as a "base" changeset. Both are shorthand for a topologically | ||||
related set of changesets (the "source branch"). If you specify source | ||||
("-s/--source"), rebase will rebase that changeset and all of its | ||||
descendants onto dest. If you specify base ("-b/--base"), rebase will | ||||
select ancestors of base back to but not including the common ancestor | ||||
with dest. Thus, "-b" is less precise but more convenient than "-s": you | ||||
can specify any changeset in the source branch, and rebase will select the | ||||
whole branch. If you specify neither "-s" nor "-b", rebase uses the parent | ||||
of the working directory as the base. | ||||
By default, rebase recreates the changesets in the source branch as | ||||
descendants of dest and then destroys the originals. Use "--keep" to | ||||
preserve the original source changesets. Some changesets in the source | ||||
branch (e.g. merges from the destination branch) may be dropped if they no | ||||
longer contribute any change. | ||||
One result of the rules for selecting the destination changeset and source | ||||
branch is that, unlike "merge", rebase will do nothing if you are at the | ||||
latest (tipmost) head of a named branch with two heads. You need to | ||||
explicitly specify source and/or destination (or "update" to the other | ||||
head, if it's the head of the intended source branch). | ||||
Stefano Tortarolo
|
r6906 | |||
Martin Geisler
|
r7999 | If a rebase is interrupted to manually resolve a merge, it can be | ||
Martin Geisler
|
r8076 | continued with --continue/-c or aborted with --abort/-a. | ||
Stefano Tortarolo
|
r6906 | |||
options: | ||||
Greg Ward
|
r10646 | -s --source rebase from the specified changeset | ||
-b --base rebase from the base of the specified changeset (up to | ||||
greatest common ancestor of base and dest) | ||||
-d --dest rebase onto the specified changeset | ||||
timeless@mozdev.org
|
r9589 | --collapse collapse the rebased changesets | ||
--keep keep original changesets | ||||
--keepbranches keep original branch names | ||||
Stefano Tortarolo
|
r10352 | --detach force detaching of source from its original branch | ||
Augie Fackler
|
r7468 | -c --continue continue an interrupted rebase | ||
-a --abort abort an interrupted rebase | ||||
--style display using template map file | ||||
--template display with template | ||||
Stefano Tortarolo
|
r6906 | |||
use "hg -v help rebase" to show global options | ||||
% Use source and base | ||||
hg rebase: cannot specify both a revision and a base | ||||
Greg Ward
|
r10646 | hg rebase [-s REV | -b REV] [-d REV] [options] | ||
hg rebase {-a|-c} | ||||
Stefano Tortarolo
|
r6906 | |||
move changeset (and descendants) to a different branch | ||||
Martin Geisler
|
r9073 | Rebase uses repeated merging to graft changesets from one part of history | ||
Greg Ward
|
r10646 | (the source) onto another (the destination). This can be useful for | ||
linearizing local changes relative to a master development tree. | ||||
If you don't specify a destination changeset ("-d/--dest"), rebase uses | ||||
the tipmost head of the current named branch as the destination. (The | ||||
destination changeset is not modified by rebasing, but new changesets are | ||||
added as its descendants.) | ||||
You can specify which changesets to rebase in two ways: as a "source" | ||||
changeset or as a "base" changeset. Both are shorthand for a topologically | ||||
related set of changesets (the "source branch"). If you specify source | ||||
("-s/--source"), rebase will rebase that changeset and all of its | ||||
descendants onto dest. If you specify base ("-b/--base"), rebase will | ||||
select ancestors of base back to but not including the common ancestor | ||||
with dest. Thus, "-b" is less precise but more convenient than "-s": you | ||||
can specify any changeset in the source branch, and rebase will select the | ||||
whole branch. If you specify neither "-s" nor "-b", rebase uses the parent | ||||
of the working directory as the base. | ||||
By default, rebase recreates the changesets in the source branch as | ||||
descendants of dest and then destroys the originals. Use "--keep" to | ||||
preserve the original source changesets. Some changesets in the source | ||||
branch (e.g. merges from the destination branch) may be dropped if they no | ||||
longer contribute any change. | ||||
One result of the rules for selecting the destination changeset and source | ||||
branch is that, unlike "merge", rebase will do nothing if you are at the | ||||
latest (tipmost) head of a named branch with two heads. You need to | ||||
explicitly specify source and/or destination (or "update" to the other | ||||
head, if it's the head of the intended source branch). | ||||
Stefano Tortarolo
|
r6906 | |||
Martin Geisler
|
r7999 | If a rebase is interrupted to manually resolve a merge, it can be | ||
Martin Geisler
|
r8076 | continued with --continue/-c or aborted with --abort/-a. | ||
Stefano Tortarolo
|
r6906 | |||
options: | ||||
Greg Ward
|
r10646 | -s --source rebase from the specified changeset | ||
-b --base rebase from the base of the specified changeset (up to | ||||
greatest common ancestor of base and dest) | ||||
-d --dest rebase onto the specified changeset | ||||
timeless@mozdev.org
|
r9589 | --collapse collapse the rebased changesets | ||
--keep keep original changesets | ||||
--keepbranches keep original branch names | ||||
Stefano Tortarolo
|
r10352 | --detach force detaching of source from its original branch | ||
Augie Fackler
|
r7468 | -c --continue continue an interrupted rebase | ||
-a --abort abort an interrupted rebase | ||||
--style display using template map file | ||||
--template display with template | ||||
Stefano Tortarolo
|
r6906 | |||
use "hg -v help rebase" to show global options | ||||
% Rebase with no arguments - from current | ||||
nothing to rebase | ||||
% Rebase with no arguments - from the current branch | ||||
0 files updated, 0 files merged, 1 files removed, 0 files unresolved | ||||
nothing to rebase | ||||
% ---------- | ||||
% These work | ||||
% Rebase with no arguments (from 3 onto 7) | ||||
3 files updated, 0 files merged, 2 files removed, 0 files unresolved | ||||
saving bundle to | ||||
adding branch | ||||
adding changesets | ||||
adding manifests | ||||
adding file changes | ||||
added 5 changesets with 5 changes to 5 files | ||||
rebase completed | ||||
Stefano Tortarolo
|
r7130 | % Try to rollback after a rebase (fail) | ||
no rollback information available | ||||
Stefano Tortarolo
|
r6906 | |||
% Rebase with base == '.' => same as no arguments (from 3 onto 7) | ||||
3 files updated, 0 files merged, 3 files removed, 0 files unresolved | ||||
saving bundle to | ||||
adding branch | ||||
adding changesets | ||||
adding manifests | ||||
adding file changes | ||||
added 5 changesets with 5 changes to 5 files | ||||
rebase completed | ||||
% Rebase with dest == default => same as no arguments (from 3 onto 7) | ||||
3 files updated, 0 files merged, 3 files removed, 0 files unresolved | ||||
saving bundle to | ||||
adding branch | ||||
adding changesets | ||||
adding manifests | ||||
adding file changes | ||||
added 5 changesets with 5 changes to 5 files | ||||
rebase completed | ||||
% Specify only source (from 4 onto 7) | ||||
saving bundle to | ||||
adding branch | ||||
adding changesets | ||||
adding manifests | ||||
adding file changes | ||||
added 4 changesets with 4 changes to 4 files (-1 heads) | ||||
rebase completed | ||||
% Specify only dest (from 3 onto 6) | ||||
3 files updated, 0 files merged, 3 files removed, 0 files unresolved | ||||
saving bundle to | ||||
adding branch | ||||
adding changesets | ||||
adding manifests | ||||
adding file changes | ||||
added 5 changesets with 5 changes to 5 files (+1 heads) | ||||
rebase completed | ||||
% Specify only base (from 3 onto 7) | ||||
saving bundle to | ||||
adding branch | ||||
adding changesets | ||||
adding manifests | ||||
adding file changes | ||||
added 5 changesets with 5 changes to 5 files | ||||
rebase completed | ||||
% Specify source and dest (from 4 onto 6) | ||||
saving bundle to | ||||
adding branch | ||||
adding changesets | ||||
adding manifests | ||||
adding file changes | ||||
added 4 changesets with 4 changes to 4 files | ||||
rebase completed | ||||
% Specify base and dest (from 3 onto 6) | ||||
saving bundle to | ||||
adding branch | ||||
adding changesets | ||||
adding manifests | ||||
adding file changes | ||||
added 5 changesets with 5 changes to 5 files (+1 heads) | ||||
rebase completed | ||||