# HG changeset patch # User Martin Geisler # Date 2010-05-17 19:16:35 # Node ID b5c0f6a1143066c453032ab6dc4163ef52e932ee # Parent db2897926d14925ae957349ae9c8b726ba161aee rebase: stress that only local changesets should be rebased diff --git a/hgext/rebase.py b/hgext/rebase.py --- a/hgext/rebase.py +++ b/hgext/rebase.py @@ -29,9 +29,14 @@ def rebase(ui, repo, **opts): Rebase uses repeated merging to graft changesets from one part of history (the source) onto another (the destination). This can be - useful for linearizing local changes relative to a master + useful for linearizing *local* changes relative to a master development tree. + You should not rebase changesets that have already been shared + with others. Doing so will force everybody else to perform the + same rebase or they will end up with duplicated changesets after + pulling in your rebased changesets. + 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 diff --git a/tests/test-rebase-parameters.out b/tests/test-rebase-parameters.out --- a/tests/test-rebase-parameters.out +++ b/tests/test-rebase-parameters.out @@ -9,7 +9,12 @@ move changeset (and descendants) to a di Rebase uses repeated merging to graft changesets from one part of history (the source) onto another (the destination). This can be useful for - linearizing local changes relative to a master development tree. + linearizing *local* changes relative to a master development tree. + + You should not rebase changesets that have already been shared with + others. Doing so will force everybody else to perform the same rebase or + they will end up with duplicated changesets after pulling in your rebased + changesets. If you don't specify a destination changeset ("-d/--dest"), rebase uses the tipmost head of the current named branch as the destination. (The @@ -68,7 +73,12 @@ move changeset (and descendants) to a di Rebase uses repeated merging to graft changesets from one part of history (the source) onto another (the destination). This can be useful for - linearizing local changes relative to a master development tree. + linearizing *local* changes relative to a master development tree. + + You should not rebase changesets that have already been shared with + others. Doing so will force everybody else to perform the same rebase or + they will end up with duplicated changesets after pulling in your rebased + changesets. If you don't specify a destination changeset ("-d/--dest"), rebase uses the tipmost head of the current named branch as the destination. (The @@ -127,7 +137,12 @@ move changeset (and descendants) to a di Rebase uses repeated merging to graft changesets from one part of history (the source) onto another (the destination). This can be useful for - linearizing local changes relative to a master development tree. + linearizing *local* changes relative to a master development tree. + + You should not rebase changesets that have already been shared with + others. Doing so will force everybody else to perform the same rebase or + they will end up with duplicated changesets after pulling in your rebased + changesets. If you don't specify a destination changeset ("-d/--dest"), rebase uses the tipmost head of the current named branch as the destination. (The @@ -186,7 +201,12 @@ move changeset (and descendants) to a di Rebase uses repeated merging to graft changesets from one part of history (the source) onto another (the destination). This can be useful for - linearizing local changes relative to a master development tree. + linearizing *local* changes relative to a master development tree. + + You should not rebase changesets that have already been shared with + others. Doing so will force everybody else to perform the same rebase or + they will end up with duplicated changesets after pulling in your rebased + changesets. If you don't specify a destination changeset ("-d/--dest"), rebase uses the tipmost head of the current named branch as the destination. (The