tests/test-rebase-parameters.out
branchstable
changeset 10646 86dc21148bdb
parent 10352 66d954e76ffb
child 11188 b5c0f6a11430
equal deleted inserted replaced
10645:ac280ab55c9f 10646:86dc21148bdb
     1 % These fail
     1 % These fail
     2 
     2 
     3 % Use continue and abort
     3 % Use continue and abort
     4 hg rebase: cannot use both abort and continue
     4 hg rebase: cannot use both abort and continue
     5 hg rebase [-s REV | -b REV] [-d REV] [--collapse] [--detach] [--keep] [--keepbranches] | [-c] | [-a]
     5 hg rebase [-s REV | -b REV] [-d REV] [options]
       
     6 hg rebase {-a|-c}
     6 
     7 
     7 move changeset (and descendants) to a different branch
     8 move changeset (and descendants) to a different branch
     8 
     9 
     9     Rebase uses repeated merging to graft changesets from one part of history
    10     Rebase uses repeated merging to graft changesets from one part of history
    10     onto another. This can be useful for linearizing local changes relative to
    11     (the source) onto another (the destination). This can be useful for
    11     a master development tree.
    12     linearizing local changes relative to a master development tree.
       
    13 
       
    14     If you don't specify a destination changeset ("-d/--dest"), rebase uses
       
    15     the tipmost head of the current named branch as the destination. (The
       
    16     destination changeset is not modified by rebasing, but new changesets are
       
    17     added as its descendants.)
       
    18 
       
    19     You can specify which changesets to rebase in two ways: as a "source"
       
    20     changeset or as a "base" changeset. Both are shorthand for a topologically
       
    21     related set of changesets (the "source branch"). If you specify source
       
    22     ("-s/--source"), rebase will rebase that changeset and all of its
       
    23     descendants onto dest. If you specify base ("-b/--base"), rebase will
       
    24     select ancestors of base back to but not including the common ancestor
       
    25     with dest. Thus, "-b" is less precise but more convenient than "-s": you
       
    26     can specify any changeset in the source branch, and rebase will select the
       
    27     whole branch. If you specify neither "-s" nor "-b", rebase uses the parent
       
    28     of the working directory as the base.
       
    29 
       
    30     By default, rebase recreates the changesets in the source branch as
       
    31     descendants of dest and then destroys the originals. Use "--keep" to
       
    32     preserve the original source changesets. Some changesets in the source
       
    33     branch (e.g. merges from the destination branch) may be dropped if they no
       
    34     longer contribute any change.
       
    35 
       
    36     One result of the rules for selecting the destination changeset and source
       
    37     branch is that, unlike "merge", rebase will do nothing if you are at the
       
    38     latest (tipmost) head of a named branch with two heads. You need to
       
    39     explicitly specify source and/or destination (or "update" to the other
       
    40     head, if it's the head of the intended source branch).
    12 
    41 
    13     If a rebase is interrupted to manually resolve a merge, it can be
    42     If a rebase is interrupted to manually resolve a merge, it can be
    14     continued with --continue/-c or aborted with --abort/-a.
    43     continued with --continue/-c or aborted with --abort/-a.
    15 
    44 
    16 options:
    45 options:
    17 
    46 
    18  -s --source        rebase from a given revision
    47  -s --source        rebase from the specified changeset
    19  -b --base          rebase from the base of a given revision
    48  -b --base          rebase from the base of the specified changeset (up to
    20  -d --dest          rebase onto a given revision
    49                     greatest common ancestor of base and dest)
       
    50  -d --dest          rebase onto the specified changeset
    21     --collapse      collapse the rebased changesets
    51     --collapse      collapse the rebased changesets
    22     --keep          keep original changesets
    52     --keep          keep original changesets
    23     --keepbranches  keep original branch names
    53     --keepbranches  keep original branch names
    24     --detach        force detaching of source from its original branch
    54     --detach        force detaching of source from its original branch
    25  -c --continue      continue an interrupted rebase
    55  -c --continue      continue an interrupted rebase
    29 
    59 
    30 use "hg -v help rebase" to show global options
    60 use "hg -v help rebase" to show global options
    31 
    61 
    32 % Use continue and collapse
    62 % Use continue and collapse
    33 hg rebase: cannot use collapse with continue or abort
    63 hg rebase: cannot use collapse with continue or abort
    34 hg rebase [-s REV | -b REV] [-d REV] [--collapse] [--detach] [--keep] [--keepbranches] | [-c] | [-a]
    64 hg rebase [-s REV | -b REV] [-d REV] [options]
       
    65 hg rebase {-a|-c}
    35 
    66 
    36 move changeset (and descendants) to a different branch
    67 move changeset (and descendants) to a different branch
    37 
    68 
    38     Rebase uses repeated merging to graft changesets from one part of history
    69     Rebase uses repeated merging to graft changesets from one part of history
    39     onto another. This can be useful for linearizing local changes relative to
    70     (the source) onto another (the destination). This can be useful for
    40     a master development tree.
    71     linearizing local changes relative to a master development tree.
       
    72 
       
    73     If you don't specify a destination changeset ("-d/--dest"), rebase uses
       
    74     the tipmost head of the current named branch as the destination. (The
       
    75     destination changeset is not modified by rebasing, but new changesets are
       
    76     added as its descendants.)
       
    77 
       
    78     You can specify which changesets to rebase in two ways: as a "source"
       
    79     changeset or as a "base" changeset. Both are shorthand for a topologically
       
    80     related set of changesets (the "source branch"). If you specify source
       
    81     ("-s/--source"), rebase will rebase that changeset and all of its
       
    82     descendants onto dest. If you specify base ("-b/--base"), rebase will
       
    83     select ancestors of base back to but not including the common ancestor
       
    84     with dest. Thus, "-b" is less precise but more convenient than "-s": you
       
    85     can specify any changeset in the source branch, and rebase will select the
       
    86     whole branch. If you specify neither "-s" nor "-b", rebase uses the parent
       
    87     of the working directory as the base.
       
    88 
       
    89     By default, rebase recreates the changesets in the source branch as
       
    90     descendants of dest and then destroys the originals. Use "--keep" to
       
    91     preserve the original source changesets. Some changesets in the source
       
    92     branch (e.g. merges from the destination branch) may be dropped if they no
       
    93     longer contribute any change.
       
    94 
       
    95     One result of the rules for selecting the destination changeset and source
       
    96     branch is that, unlike "merge", rebase will do nothing if you are at the
       
    97     latest (tipmost) head of a named branch with two heads. You need to
       
    98     explicitly specify source and/or destination (or "update" to the other
       
    99     head, if it's the head of the intended source branch).
    41 
   100 
    42     If a rebase is interrupted to manually resolve a merge, it can be
   101     If a rebase is interrupted to manually resolve a merge, it can be
    43     continued with --continue/-c or aborted with --abort/-a.
   102     continued with --continue/-c or aborted with --abort/-a.
    44 
   103 
    45 options:
   104 options:
    46 
   105 
    47  -s --source        rebase from a given revision
   106  -s --source        rebase from the specified changeset
    48  -b --base          rebase from the base of a given revision
   107  -b --base          rebase from the base of the specified changeset (up to
    49  -d --dest          rebase onto a given revision
   108                     greatest common ancestor of base and dest)
       
   109  -d --dest          rebase onto the specified changeset
    50     --collapse      collapse the rebased changesets
   110     --collapse      collapse the rebased changesets
    51     --keep          keep original changesets
   111     --keep          keep original changesets
    52     --keepbranches  keep original branch names
   112     --keepbranches  keep original branch names
    53     --detach        force detaching of source from its original branch
   113     --detach        force detaching of source from its original branch
    54  -c --continue      continue an interrupted rebase
   114  -c --continue      continue an interrupted rebase
    58 
   118 
    59 use "hg -v help rebase" to show global options
   119 use "hg -v help rebase" to show global options
    60 
   120 
    61 % Use continue/abort and dest/source
   121 % Use continue/abort and dest/source
    62 hg rebase: abort and continue do not allow specifying revisions
   122 hg rebase: abort and continue do not allow specifying revisions
    63 hg rebase [-s REV | -b REV] [-d REV] [--collapse] [--detach] [--keep] [--keepbranches] | [-c] | [-a]
   123 hg rebase [-s REV | -b REV] [-d REV] [options]
       
   124 hg rebase {-a|-c}
    64 
   125 
    65 move changeset (and descendants) to a different branch
   126 move changeset (and descendants) to a different branch
    66 
   127 
    67     Rebase uses repeated merging to graft changesets from one part of history
   128     Rebase uses repeated merging to graft changesets from one part of history
    68     onto another. This can be useful for linearizing local changes relative to
   129     (the source) onto another (the destination). This can be useful for
    69     a master development tree.
   130     linearizing local changes relative to a master development tree.
       
   131 
       
   132     If you don't specify a destination changeset ("-d/--dest"), rebase uses
       
   133     the tipmost head of the current named branch as the destination. (The
       
   134     destination changeset is not modified by rebasing, but new changesets are
       
   135     added as its descendants.)
       
   136 
       
   137     You can specify which changesets to rebase in two ways: as a "source"
       
   138     changeset or as a "base" changeset. Both are shorthand for a topologically
       
   139     related set of changesets (the "source branch"). If you specify source
       
   140     ("-s/--source"), rebase will rebase that changeset and all of its
       
   141     descendants onto dest. If you specify base ("-b/--base"), rebase will
       
   142     select ancestors of base back to but not including the common ancestor
       
   143     with dest. Thus, "-b" is less precise but more convenient than "-s": you
       
   144     can specify any changeset in the source branch, and rebase will select the
       
   145     whole branch. If you specify neither "-s" nor "-b", rebase uses the parent
       
   146     of the working directory as the base.
       
   147 
       
   148     By default, rebase recreates the changesets in the source branch as
       
   149     descendants of dest and then destroys the originals. Use "--keep" to
       
   150     preserve the original source changesets. Some changesets in the source
       
   151     branch (e.g. merges from the destination branch) may be dropped if they no
       
   152     longer contribute any change.
       
   153 
       
   154     One result of the rules for selecting the destination changeset and source
       
   155     branch is that, unlike "merge", rebase will do nothing if you are at the
       
   156     latest (tipmost) head of a named branch with two heads. You need to
       
   157     explicitly specify source and/or destination (or "update" to the other
       
   158     head, if it's the head of the intended source branch).
    70 
   159 
    71     If a rebase is interrupted to manually resolve a merge, it can be
   160     If a rebase is interrupted to manually resolve a merge, it can be
    72     continued with --continue/-c or aborted with --abort/-a.
   161     continued with --continue/-c or aborted with --abort/-a.
    73 
   162 
    74 options:
   163 options:
    75 
   164 
    76  -s --source        rebase from a given revision
   165  -s --source        rebase from the specified changeset
    77  -b --base          rebase from the base of a given revision
   166  -b --base          rebase from the base of the specified changeset (up to
    78  -d --dest          rebase onto a given revision
   167                     greatest common ancestor of base and dest)
       
   168  -d --dest          rebase onto the specified changeset
    79     --collapse      collapse the rebased changesets
   169     --collapse      collapse the rebased changesets
    80     --keep          keep original changesets
   170     --keep          keep original changesets
    81     --keepbranches  keep original branch names
   171     --keepbranches  keep original branch names
    82     --detach        force detaching of source from its original branch
   172     --detach        force detaching of source from its original branch
    83  -c --continue      continue an interrupted rebase
   173  -c --continue      continue an interrupted rebase
    87 
   177 
    88 use "hg -v help rebase" to show global options
   178 use "hg -v help rebase" to show global options
    89 
   179 
    90 % Use source and base
   180 % Use source and base
    91 hg rebase: cannot specify both a revision and a base
   181 hg rebase: cannot specify both a revision and a base
    92 hg rebase [-s REV | -b REV] [-d REV] [--collapse] [--detach] [--keep] [--keepbranches] | [-c] | [-a]
   182 hg rebase [-s REV | -b REV] [-d REV] [options]
       
   183 hg rebase {-a|-c}
    93 
   184 
    94 move changeset (and descendants) to a different branch
   185 move changeset (and descendants) to a different branch
    95 
   186 
    96     Rebase uses repeated merging to graft changesets from one part of history
   187     Rebase uses repeated merging to graft changesets from one part of history
    97     onto another. This can be useful for linearizing local changes relative to
   188     (the source) onto another (the destination). This can be useful for
    98     a master development tree.
   189     linearizing local changes relative to a master development tree.
       
   190 
       
   191     If you don't specify a destination changeset ("-d/--dest"), rebase uses
       
   192     the tipmost head of the current named branch as the destination. (The
       
   193     destination changeset is not modified by rebasing, but new changesets are
       
   194     added as its descendants.)
       
   195 
       
   196     You can specify which changesets to rebase in two ways: as a "source"
       
   197     changeset or as a "base" changeset. Both are shorthand for a topologically
       
   198     related set of changesets (the "source branch"). If you specify source
       
   199     ("-s/--source"), rebase will rebase that changeset and all of its
       
   200     descendants onto dest. If you specify base ("-b/--base"), rebase will
       
   201     select ancestors of base back to but not including the common ancestor
       
   202     with dest. Thus, "-b" is less precise but more convenient than "-s": you
       
   203     can specify any changeset in the source branch, and rebase will select the
       
   204     whole branch. If you specify neither "-s" nor "-b", rebase uses the parent
       
   205     of the working directory as the base.
       
   206 
       
   207     By default, rebase recreates the changesets in the source branch as
       
   208     descendants of dest and then destroys the originals. Use "--keep" to
       
   209     preserve the original source changesets. Some changesets in the source
       
   210     branch (e.g. merges from the destination branch) may be dropped if they no
       
   211     longer contribute any change.
       
   212 
       
   213     One result of the rules for selecting the destination changeset and source
       
   214     branch is that, unlike "merge", rebase will do nothing if you are at the
       
   215     latest (tipmost) head of a named branch with two heads. You need to
       
   216     explicitly specify source and/or destination (or "update" to the other
       
   217     head, if it's the head of the intended source branch).
    99 
   218 
   100     If a rebase is interrupted to manually resolve a merge, it can be
   219     If a rebase is interrupted to manually resolve a merge, it can be
   101     continued with --continue/-c or aborted with --abort/-a.
   220     continued with --continue/-c or aborted with --abort/-a.
   102 
   221 
   103 options:
   222 options:
   104 
   223 
   105  -s --source        rebase from a given revision
   224  -s --source        rebase from the specified changeset
   106  -b --base          rebase from the base of a given revision
   225  -b --base          rebase from the base of the specified changeset (up to
   107  -d --dest          rebase onto a given revision
   226                     greatest common ancestor of base and dest)
       
   227  -d --dest          rebase onto the specified changeset
   108     --collapse      collapse the rebased changesets
   228     --collapse      collapse the rebased changesets
   109     --keep          keep original changesets
   229     --keep          keep original changesets
   110     --keepbranches  keep original branch names
   230     --keepbranches  keep original branch names
   111     --detach        force detaching of source from its original branch
   231     --detach        force detaching of source from its original branch
   112  -c --continue      continue an interrupted rebase
   232  -c --continue      continue an interrupted rebase