[MERGE] Add support for `bzr pull --dry-run`

Vincent Ladeuil v.ladeuil+lp at free.fr
Mon Jan 5 12:14:28 GMT 2009


>>>>> "Marius" == Marius Kruger <amanic at gmail.com> writes:

    Marius> hi,
    Marius> This patch adds support for `bzr pull --dry-run`, which prints out the same
    Marius> as `bzr pull`
    Marius> without actually pulling the changes.
    Marius> I added all the tests I could think of with my tired brain, let me know it I
    Marius> need more.

    Marius> == some motivation/history/gripes ==
    Marius> At work we have a human gatekeeper who checks who changed what files before
    Marius> it gets deployed.
    Marius> So I have scripts that does the following tasks on each of the component
    Marius> branches (there are about 40 components and I use scmproj to manage them
    Marius> sanely. thanks Alexander):
    Marius> 1) tag the dev branches to PRE-QA

Why don't you create PRE-QA *branches* so that you can still use
pull and missing as they are meant to (between branches) ?

    Marius> 2) determine what is missing in qa up to dev:tag:PRE-QA (create change
    Marius> report for the human gatekeeper to see which files changed)

Solved by the above.

    Marius> 3) pull changes to up to dev:tag:PRE-QA

Solved by the above.

    Marius> My problem is with step 2), normally it runs right
    Marius> after step 1) so I can use normal `missing -v`.  But
    Marius> if I need to run it later changes added after
    Marius> tag:PRE-QA are also shown.

As they should, that's the purpose of 'missing', if you want to
work with intermediate steps, additional branches sound simpler.

     Vincent



More information about the bazaar mailing list