git cl upload: add --all alias for --dependencies [chromium/tools/depot_tools : main]

0 views
Skip to first unread message

Thiago Perrotta (Gerrit)

unread,
Nov 26, 2022, 11:05:57 AM11/26/22
to chops-source-team...@google.com, Aravind Vasudevan, Joanna Wang, chromium...@chromium.org

Attention is currently required from: Aravind Vasudevan.

Patch set 1:Commit-Queue +1

View Change

1 comment:

To view, visit change 4059206. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/tools/depot_tools
Gerrit-Branch: main
Gerrit-Change-Id: I5cae190a9694f92c8972e826404519bf4c785792
Gerrit-Change-Number: 4059206
Gerrit-PatchSet: 1
Gerrit-Owner: Thiago Perrotta <tper...@chromium.org>
Gerrit-Reviewer: Aravind Vasudevan <aravind...@google.com>
Gerrit-Reviewer: Thiago Perrotta <tper...@chromium.org>
Gerrit-CC: Joanna Wang <joj...@chromium.org>
Gerrit-Attention: Aravind Vasudevan <aravind...@google.com>
Gerrit-Comment-Date: Sat, 26 Nov 2022 16:04:40 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment

Aravind Vasudevan (Gerrit)

unread,
Nov 28, 2022, 2:26:05 PM11/28/22
to Thiago Perrotta, chops-source-team...@google.com, LUCI CQ, Joanna Wang, chromium...@chromium.org

Attention is currently required from: Thiago Perrotta.

View Change

1 comment:

  • File git_cl.py:

    • Patch Set #1, Line 1626: if '--all' in orig_args:

      Why remove `--all`? optparse combines both the flag when provided through `add_option`.

      Eg:
      ```
      ➜ ~ python3
      Python 3.9.6 (default, Sep 26 2022, 11:37:49)
      [Clang 14.0.0 (clang-1400.0.29.202)] on darwin
      Type "help", "copyright", "credits" or "license" for more information.
      >>> import optparse
      >>> parser = optparse.OptionParser()
      >>> parser.add_option('--dependencies', '--all', action='store_true')
      <Option at 0x100ba00a0: --dependencies/--all>
      >>>
      >>> parser.parse_args([])
      (<Values at 0x100b85fa0: {'dependencies': None}>, [])
      >>> parser.parse_args(['--dependencies'])
      (<Values at 0x100c4a370: {'dependencies': True}>, [])
      >>> parser.parse_args(['--all'])
      (<Values at 0x100ba08b0: {'dependencies': True}>, [])
      ```

To view, visit change 4059206. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/tools/depot_tools
Gerrit-Branch: main
Gerrit-Change-Id: I5cae190a9694f92c8972e826404519bf4c785792
Gerrit-Change-Number: 4059206
Gerrit-PatchSet: 1
Gerrit-Owner: Thiago Perrotta <tper...@chromium.org>
Gerrit-Reviewer: Aravind Vasudevan <aravind...@google.com>
Gerrit-Reviewer: Thiago Perrotta <tper...@chromium.org>
Gerrit-CC: Joanna Wang <joj...@chromium.org>
Gerrit-Attention: Thiago Perrotta <tper...@chromium.org>
Gerrit-Comment-Date: Mon, 28 Nov 2022 19:25:57 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment

Thiago Perrotta (Gerrit)

unread,
Nov 28, 2022, 2:41:12 PM11/28/22
to chops-source-team...@google.com, LUCI CQ, Aravind Vasudevan, Joanna Wang, chromium...@chromium.org

Attention is currently required from: Aravind Vasudevan.

Patch set 1:Auto-Submit +1Commit-Queue +1

View Change

1 comment:

  • File git_cl.py:

    • Why remove `--all`? optparse combines both the flag when provided through `add_option`. […]

      Good catch, thanks. Done.

To view, visit change 4059206. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/tools/depot_tools
Gerrit-Branch: main
Gerrit-Change-Id: I5cae190a9694f92c8972e826404519bf4c785792
Gerrit-Change-Number: 4059206
Gerrit-PatchSet: 1
Gerrit-Owner: Thiago Perrotta <tper...@chromium.org>
Gerrit-Reviewer: Aravind Vasudevan <aravind...@google.com>
Gerrit-Reviewer: Thiago Perrotta <tper...@chromium.org>
Gerrit-CC: Joanna Wang <joj...@chromium.org>
Gerrit-Attention: Aravind Vasudevan <aravind...@google.com>
Gerrit-Comment-Date: Mon, 28 Nov 2022 19:39:56 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Aravind Vasudevan <aravind...@google.com>
Gerrit-MessageType: comment

Aravind Vasudevan (Gerrit)

unread,
Nov 28, 2022, 2:43:26 PM11/28/22
to Thiago Perrotta, chops-source-team...@google.com, LUCI CQ, Joanna Wang, chromium...@chromium.org

Attention is currently required from: Thiago Perrotta.

View Change

1 comment:

  • File git_cl.py:

    • Patch Set #2, Line 1624: if '--dependencies' in orig_args:

      Is there a reason for adding this check. I'm assuming `orig_args.remove('--dependencies')` would be a noop if `--dependencies` don't exist.

To view, visit change 4059206. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/tools/depot_tools
Gerrit-Branch: main
Gerrit-Change-Id: I5cae190a9694f92c8972e826404519bf4c785792
Gerrit-Change-Number: 4059206
Gerrit-PatchSet: 2
Gerrit-Owner: Thiago Perrotta <tper...@chromium.org>
Gerrit-Reviewer: Aravind Vasudevan <aravind...@google.com>
Gerrit-Reviewer: Thiago Perrotta <tper...@chromium.org>
Gerrit-CC: Joanna Wang <joj...@chromium.org>
Gerrit-Attention: Thiago Perrotta <tper...@chromium.org>
Gerrit-Comment-Date: Mon, 28 Nov 2022 19:43:19 +0000

Thiago Perrotta (Gerrit)

unread,
Nov 28, 2022, 3:15:09 PM11/28/22
to chops-source-team...@google.com, LUCI CQ, Aravind Vasudevan, Joanna Wang, chromium...@chromium.org

Attention is currently required from: Aravind Vasudevan.

Patch set 2:Auto-Submit +1Commit-Queue +1

View Change

1 comment:

  • File git_cl.py:

    • Is there a reason for adding this check. I'm assuming `orig_args. […]

      Removed.

To view, visit change 4059206. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/tools/depot_tools
Gerrit-Branch: main
Gerrit-Change-Id: I5cae190a9694f92c8972e826404519bf4c785792
Gerrit-Change-Number: 4059206
Gerrit-PatchSet: 2
Gerrit-Owner: Thiago Perrotta <tper...@chromium.org>
Gerrit-Reviewer: Aravind Vasudevan <aravind...@google.com>
Gerrit-Reviewer: Thiago Perrotta <tper...@chromium.org>
Gerrit-CC: Joanna Wang <joj...@chromium.org>
Gerrit-Attention: Aravind Vasudevan <aravind...@google.com>
Gerrit-Comment-Date: Mon, 28 Nov 2022 20:14:29 +0000

Joanna Wang (Gerrit)

unread,
Nov 28, 2022, 3:19:14 PM11/28/22
to Thiago Perrotta, chops-source-team...@google.com, LUCI CQ, Aravind Vasudevan, chromium...@chromium.org

Attention is currently required from: Joanna Wang.

View Change

1 comment:

  • Patchset:

    • Patch Set #2:

      iiuc '--all' in hg upload has a different behavior (uploads all CLs in the chain?).

      If we were to add '--all' i think we'd want to have it behave similarly (called in any branch and upload all CLs in the stack not just the dependencies rather than just being an alias of --dependencies).


      We're also in the early stages of improving the stacked changes experience. I think we'd prefer holding off on this until we have a clearer idea of how we want to make the experience better. We don't want to add args and then remove them or change their behavior later on.

To view, visit change 4059206. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/tools/depot_tools
Gerrit-Branch: main
Gerrit-Change-Id: I5cae190a9694f92c8972e826404519bf4c785792
Gerrit-Change-Number: 4059206
Gerrit-PatchSet: 2
Gerrit-Owner: Thiago Perrotta <tper...@chromium.org>
Gerrit-Reviewer: Aravind Vasudevan <aravind...@google.com>
Gerrit-Reviewer: Joanna Wang <joj...@chromium.org>
Gerrit-Reviewer: Thiago Perrotta <tper...@chromium.org>
Gerrit-Attention: Joanna Wang <joj...@chromium.org>
Gerrit-Comment-Date: Mon, 28 Nov 2022 20:19:06 +0000

Thiago Perrotta (Gerrit)

unread,
Nov 28, 2022, 3:22:19 PM11/28/22
to chops-source-team...@google.com, Joanna Wang, LUCI CQ, Aravind Vasudevan, chromium...@chromium.org

Attention is currently required from: Joanna Wang.

Patch set 3:Auto-Submit +1

View Change

1 comment:

  • Patchset:

    • Patch Set #2:

      iiuc '--all' in hg upload has a different behavior (uploads all CLs in the chain?). […]

      Sounds good, will abandon this then.

To view, visit change 4059206. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/tools/depot_tools
Gerrit-Branch: main
Gerrit-Change-Id: I5cae190a9694f92c8972e826404519bf4c785792
Gerrit-Change-Number: 4059206
Gerrit-PatchSet: 3
Gerrit-Owner: Thiago Perrotta <tper...@chromium.org>
Gerrit-Reviewer: Aravind Vasudevan <aravind...@google.com>
Gerrit-Reviewer: Joanna Wang <joj...@chromium.org>
Gerrit-Reviewer: Thiago Perrotta <tper...@chromium.org>
Gerrit-Attention: Joanna Wang <joj...@chromium.org>
Gerrit-Comment-Date: Mon, 28 Nov 2022 20:21:33 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Joanna Wang <joj...@chromium.org>
Gerrit-MessageType: comment

Thiago Perrotta (Gerrit)

unread,
Nov 28, 2022, 3:22:40 PM11/28/22
to chops-source-team...@google.com, Joanna Wang, LUCI CQ, Aravind Vasudevan, chromium...@chromium.org

Thiago Perrotta abandoned this change.

View Change

Abandoned c.f. comments

To view, visit change 4059206. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/tools/depot_tools
Gerrit-Branch: main
Gerrit-Change-Id: I5cae190a9694f92c8972e826404519bf4c785792
Gerrit-Change-Number: 4059206
Gerrit-PatchSet: 3
Gerrit-Owner: Thiago Perrotta <tper...@chromium.org>
Gerrit-Reviewer: Aravind Vasudevan <aravind...@google.com>
Gerrit-Reviewer: Joanna Wang <joj...@chromium.org>
Gerrit-Reviewer: Thiago Perrotta <tper...@chromium.org>
Gerrit-MessageType: abandon
Reply all
Reply to author
Forward
0 new messages