Changes between Version 10 and Version 11 of BazaarWorkflow


Ignore:
Timestamp:
2009-08-17T19:13:12Z (15 years ago)
Author:
Jiri Svoboda
Comment:

Algorithm for checking if it is safe to push.

Legend:

Unmodified
Added
Removed
Modified
  • BazaarWorkflow

    v10 v11  
    9292The main repository would inherit the head of your feature branch as its head. Your feature branch would become the mainline and the repository's history will become confused. If you did this, well, '''shame on you'''! However, it can still be fixed to some extent by creating a new merge changeset which would merge the offending head into the mainline. (I.e., the right way around.) You should rather ask someone competent to do this. In any case it will produce some confusing changesets in the history.
    9393
     94== How do I know it is safe to push to the main repository? ==
     95
     96In case you are wondering, there is one foolproof way to check that you can push from a repository ''A'' to the mainline. (It could be even automated on the client side.) First look at the log of the main repository and find the last changeset (the mainline head, ''H''). Now look at the log of repository ''A'' from which you would like to push. If it contains the mainline head ''H'' (use {{{bzr log --show-ids}}} and compare {{{revision-id}}}) (usually as the second changeset from the top), it is safe to push. If you do not see the mainline head, stop!
     97
     98Normally you will know what repositories are safe to push because they are not diverged (the clone of the main repository) and which are not (your feature branches).
     99
    94100== Conclusion ==
    95101