View Outgoing revisions before push

Asked by Craig Hewetson

How would I be able to see the changes (revisions) that I am about to push? NOTE: My changes not other people's changes.

Lets say I have been committing changes in my working tree and have done merges with the server over time. Then when my feature has been completed, I would like to see all the changes before I do a push. Is this possible?

Apparently mercurial has a feature like this called "outgoing"

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
James Westby
Solved:
Last query:
Last reply:
Revision history for this message
Craig Hewetson (craighewetson-deactivatedaccount) said :
#1

Just to elaborate:

Senario:
I branch from a project.
I make changes A. (commit)
I merge with server (other people's changes B) (merge and commit)
I then make some more changes C (commit)
And then I do a merge with server (get changes D) (merge and commit)

Now when I do commit and then want to push.
But before that i would like to see a list of changes A and C. i.e my changes that I am contributing will be previewed before I push.

Revision history for this message
Best James Westby (james-w) said :
#2

Hi,

I think what you are looking for is the "missing" command.

Plain "bzr missing" will show you what has changed on either side. You
can use --mine-only to show only the changes made on your side (though
if you are able to push then there won't be any changes on the other side).

This command defaults to comparing with the parent branch, which sounds
like it is the correct thing for your case. You can specify an explicit URL to
the command to compare with another branch. Using "bzr missing :push" will
compare with the location that plain "bzr push" will push to.

If you want to see the actual diff then the best way might be
"bzr diff -r ancestor:URL".

I believe this can be shortened to "bzr diff -r ancestor::push" as well.

Thanks,

James

Revision history for this message
Craig Hewetson (craighewetson-deactivatedaccount) said :
#3

Thanks for the fast reply.

missing sounds like it will solve my problem.

Revision history for this message
Craig Hewetson (craighewetson-deactivatedaccount) said :
#4

Infact bzr diff -r ancestor::push is exactly what i need.

Revision history for this message
Craig Hewetson (craighewetson-deactivatedaccount) said :
#5

Thanks James Westby, that solved my question.