Giter VIP home page Giter VIP logo

grr's People

Contributors

bahamas10 avatar trentm avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

grr's Issues

grr could support multiple issues

grr is so useful for me that I hate having do things manually just because my CR has more than one issue. It would be very useful if grr could take a comma-separated list of issues and assembled them for me.

would like `grr` list option

i'm thinking something simple like grr -l inside a repo would output something like this:

$ grr -l
OS-1
OS-2
TOOLS-1

given

$ git branch | grep ' grr-'
  grr-OS-1
  grr-OS-2
  grr-TOOLS-1

So then I could do something like

$ grr -D OS-1

or even

$ grr -l | xargs -n1 grr -D

grr could check current patchset parent

As seen in https://cr.joyent.us/#/c/6010/

I think what happened here is that patchset 2 had a parent 1df0262127ba10f20347daae7ac94c0d44fcd150

Then I rebased in Gerrit, and ran grr again. Because this then
rebased back to a previous parent, and modified the commit message,
I lost my CRs.

It would be great if grr could notice that the current patchsets parent is different
(an ancestor?) of the current local one, and refuse to upload by default.

Reviews lost when rebasing from master

How to reproduce

  1. make change

  2. submit cr

  3. someone reviews

  4. someone approves

  5. Somewhere along the way, another change has already been merged upstream and now cannot fast-forward

  6. Run...

     git checkout master
     git pull
     git checkout $oldbranch
     git rebase master
     grr
    

Note, that grr was not run between IA and rebasing. This causes gerrit to consider this a "non-trivial" change, and wipes out the reviews/aproval.

would like grr to be able to import a CR to the working copy

Somewhat the equivalent of this:

function cr-checkout {
    local crnum=$1
    if [[ -z "$crnum" ]]; then
        echo "cr-checkout: error: missing CRNUM argument" >&2
        echo "usage: cr-checkout CRNUM" >&2
        return 1
    fi
    patchset=$(git ls-remote cr | grep "refs/changes/../${crnum}/" | cut -d/ -f5 | sort -n | tail -1)
    git fetch -f cr refs/changes/${crnum:(-2)}/${crnum}/${patchset}:cr-${crnum}-${patchset}
    git checkout cr-${crnum}-${patchset}
}

You'd grr FULL-CR.JOYENT-US-URL and that would setup on a working feature branch with the latest patchset... inferring the issue from the current commit message. It should also be updatable if re-run after a new patchset was pushed.

grr could check that 'master' is up to date

If I already have a grr setup for a branch I'm working on, then I do 'git fetch' then pull --rebase into that branch, but I don't update my local master branch, then I end up with a Gerrit CR with all the intervenening changes I just pulled in. It'd be nice if grr could check for this and error out?

grr could set topic

It would be nice if grr automatically set the Gerrit topic to be the same as the main bug ID (and potentially over-ridable).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.