1. 11 Mar, 2020 1 commit
  2. 14 Feb, 2020 1 commit
  3. 13 Feb, 2020 1 commit
  4. 06 Feb, 2020 1 commit
  5. 17 Jan, 2020 1 commit
  6. 30 Oct, 2019 1 commit
  7. 23 Sep, 2019 1 commit
  8. 14 May, 2019 1 commit
  9. 10 May, 2019 1 commit
  10. 08 May, 2019 1 commit
  11. 02 May, 2019 1 commit
    • Bruce Dawson's avatar
      Fix multiple confusingly escaped regex strings · 9c062012
      Bruce Dawson authored
      Python (prior to 3.8) treats meaningless string escape sequences as if
      they were a slash followed by the character. That is, '\w' == '\\w'.
      Python 3.8 rejects this, and it's confusing. This change fixes seven of these
      regex strings found in depot_tools (through a regex search, natch). Most of
      the fixes don't actually change the value of the strings, and this was
      manually verified:
      
      >>> '(/c(/.*/\+)?)?/(\d+)(/(\d+)?/?)?$' == r'(/c(/.*/\+)?)?/(\d+)(/(\d+)?/?)?$'
      True
      >>> '#\s*OWNERS_STATUS\s+=\s+(.+)$' == r'#\s*OWNERS_STATUS\s+=\s+(.+)$'
      True
      >>> 'COM\d' == r'COM\d'
      True
      >>> '^\s+Change-Id:\s*(\S+)$' == r'^\s+Change-Id:\s*(\S+)$'
      True
      >>> 'ETag:\s+([a-z0-9]{32})' == r'ETag:\s+([a-z0-9]{32})'
      True
      
      Two exceptions were the regex expressions in filter_demo_output.py and scm.py.
      These were turned into raw strings despite this changing the value of the
      string passed to re. This works because re supports the \x, \d, \w, \t, and
      other escape sequences needed to make this work.
      
      TL;DR - use raw strings for regex to avoid melting your brain. If bulk changing
      regex strings to raw watch out for double-slashes.
      
      Bug: 958138
      Change-Id: Ic45264cfc63e8bae9cfcffe2cd88a57c2d3dcdae
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1590534
      Commit-Queue: Bruce Dawson <brucedawson@chromium.org>
      Reviewed-by: 's avatarDirk Pranke <dpranke@chromium.org>
      9c062012
  12. 02 Apr, 2019 1 commit
  13. 26 Mar, 2019 1 commit
  14. 07 Mar, 2019 1 commit
  15. 15 Oct, 2018 1 commit
  16. 24 Jul, 2018 1 commit
    • Edward Lemur's avatar
      Reland "Reland "gclient_scm: Use cherry-picking instead of rebasing."" · ca7d8815
      Edward Lemur authored
      Abort any cherry-picks before applying the patch, so that if the bots are in a
      bad state, we don't fail.
      
      Original change's description:
      > Reland "gclient_scm: Use cherry-picking instead of rebasing."
      >
      > The failures were caused by:
      >  1 - When one change (call it #2) has been uploaded on top of another (#1),
      >      and (#1) has already landed, git cherry-pick complains that the range
      >      '<merge-base>..<change #2>' contains empty commits, since the contents
      >      of (#1) are already present in the tree.
      >  2 - We did not abort the cherry-picking when 'git cherry-pick' failed,
      >      so a failure made all further CLs in that bot fail.
      >
      > This CL fixes it and prevents further regressions.
      >
      > Original change's description:
      > > gclient_scm: Use cherry-picking instead of rebasing.
      > >
      > > Currently gclient might include extra commits when applying patches.
      > > For example, in this case we checkout |patch| and rebase it on top of |base|,
      > > thus including an |extra commit| that we shouldn't.
      > >
      > > o master
      > > |
      > > . o patch
      > > |/
      > > o extra commit
      > > |
      > > o base (what gclient synced src at)
      > >
      > > This change uses the merge-base between |patch| and |master| to cherry-pick only
      > > the changes belonging to the patch.
      > >
      > > Bug: 850812
      > > Change-Id: I138192f96bc62b1bb19b0e1ad952c8f8c67631c4
      > > Reviewed-on: https://chromium-review.googlesource.com/1137052
      > > Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
      > > Reviewed-by: Aaron Gable <agable@chromium.org>
      >
      > Bug: 850812
      > Change-Id: I83f38d0a258df3f5cd89e277f0d648badff29a22
      > Reviewed-on: https://chromium-review.googlesource.com/1139554
      > Reviewed-by: Aaron Gable <agable@chromium.org>
      > Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
      
      Bug: 850812
      Change-Id: Ic65bda67c792bd7af5ec013a62d9615d1498eb3a
      Reviewed-on: https://chromium-review.googlesource.com/1142805Reviewed-by: 's avatarAaron Gable <agable@chromium.org>
      Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
      ca7d8815
  17. 18 Jul, 2018 2 commits
    • John Budorick's avatar
      Revert "Reland "gclient_scm: Use cherry-picking instead of rebasing."" · 2c984a03
      John Budorick authored
      This reverts commit f9afc77f.
      
      Reason for revert: https://bugs.chromium.org/p/chromium/issues/detail?id=864301#c10
      
      Original change's description:
      > Reland "gclient_scm: Use cherry-picking instead of rebasing."
      > 
      > The failures were caused by:
      >  1 - When one change (call it #2) has been uploaded on top of another (#1),
      >      and (#1) has already landed, git cherry-pick complains that the range
      >      '<merge-base>..<change #2>' contains empty commits, since the contents
      >      of (#1) are already present in the tree.
      >  2 - We did not abort the cherry-picking when 'git cherry-pick' failed,
      >      so a failure made all further CLs in that bot fail.
      > 
      > This CL fixes it and prevents further regressions.
      > 
      > Original change's description:
      > > gclient_scm: Use cherry-picking instead of rebasing.
      > >
      > > Currently gclient might include extra commits when applying patches.
      > > For example, in this case we checkout |patch| and rebase it on top of |base|,
      > > thus including an |extra commit| that we shouldn't.
      > >
      > > o master
      > > |
      > > . o patch
      > > |/
      > > o extra commit
      > > |
      > > o base (what gclient synced src at)
      > >
      > > This change uses the merge-base between |patch| and |master| to cherry-pick only
      > > the changes belonging to the patch.
      > >
      > > Bug: 850812
      > > Change-Id: I138192f96bc62b1bb19b0e1ad952c8f8c67631c4
      > > Reviewed-on: https://chromium-review.googlesource.com/1137052
      > > Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
      > > Reviewed-by: Aaron Gable <agable@chromium.org>
      > 
      > Bug: 850812
      > Change-Id: I83f38d0a258df3f5cd89e277f0d648badff29a22
      > Reviewed-on: https://chromium-review.googlesource.com/1139554
      > Reviewed-by: Aaron Gable <agable@chromium.org>
      > Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
      
      TBR=agable@chromium.org,ehmaldonado@chromium.org,jbudorick@chromium.org
      
      Change-Id: I2138757899abd6eb9bece2dac3a25676effafdf3
      No-Presubmit: true
      No-Tree-Checks: true
      No-Try: true
      Bug: 850812
      Reviewed-on: https://chromium-review.googlesource.com/1142624Reviewed-by: 's avatarJohn Budorick <jbudorick@chromium.org>
      Commit-Queue: John Budorick <jbudorick@chromium.org>
      2c984a03
    • Edward Lemur's avatar
      Reland "gclient_scm: Use cherry-picking instead of rebasing." · f9afc77f
      Edward Lemur authored
      The failures were caused by:
       1 - When one change (call it #2) has been uploaded on top of another (#1),
           and (#1) has already landed, git cherry-pick complains that the range
           '<merge-base>..<change #2>' contains empty commits, since the contents
           of (#1) are already present in the tree.
       2 - We did not abort the cherry-picking when 'git cherry-pick' failed,
           so a failure made all further CLs in that bot fail.
      
      This CL fixes it and prevents further regressions.
      
      Original change's description:
      > gclient_scm: Use cherry-picking instead of rebasing.
      >
      > Currently gclient might include extra commits when applying patches.
      > For example, in this case we checkout |patch| and rebase it on top of |base|,
      > thus including an |extra commit| that we shouldn't.
      >
      > o master
      > |
      > . o patch
      > |/
      > o extra commit
      > |
      > o base (what gclient synced src at)
      >
      > This change uses the merge-base between |patch| and |master| to cherry-pick only
      > the changes belonging to the patch.
      >
      > Bug: 850812
      > Change-Id: I138192f96bc62b1bb19b0e1ad952c8f8c67631c4
      > Reviewed-on: https://chromium-review.googlesource.com/1137052
      > Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
      > Reviewed-by: Aaron Gable <agable@chromium.org>
      
      Bug: 850812
      Change-Id: I83f38d0a258df3f5cd89e277f0d648badff29a22
      Reviewed-on: https://chromium-review.googlesource.com/1139554Reviewed-by: 's avatarAaron Gable <agable@chromium.org>
      Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
      f9afc77f
  18. 17 Jul, 2018 1 commit
  19. 16 Jul, 2018 1 commit
    • Edward Lemur's avatar
      gclient_scm: Use cherry-picking instead of rebasing. · fb78b368
      Edward Lemur authored
      Currently gclient might include extra commits when applying patches.
      For example, in this case we checkout |patch| and rebase it on top of |base|,
      thus including an |extra commit| that we shouldn't.
      
      o master
      |
      . o patch
      |/
      o extra commit
      |
      o base (what gclient synced src at)
      
      This change uses the merge-base between |patch| and |master| to cherry-pick only
      the changes belonging to the patch.
      
      Bug: 850812
      Change-Id: I138192f96bc62b1bb19b0e1ad952c8f8c67631c4
      Reviewed-on: https://chromium-review.googlesource.com/1137052
      Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
      Reviewed-by: 's avatarAaron Gable <agable@chromium.org>
      fb78b368
  20. 12 Dec, 2017 3 commits
  21. 11 Dec, 2017 1 commit
  22. 31 May, 2017 1 commit
  23. 13 Apr, 2017 1 commit
  24. 22 Mar, 2017 1 commit
  25. 21 Dec, 2016 2 commits
  26. 25 Nov, 2015 1 commit
  27. 17 Feb, 2015 1 commit
    • primiano@chromium.org's avatar
      Reland "Make gclient ready for the Blink (DEPS to main project)" · 1c127389
      primiano@chromium.org authored
      Reland crrev.com/743083002, which was reverted in crrev.com/796053002
      due to some test flakiness, probably related with an old version of Git on
      the bots. Relanding now that the infra has been updated to Trusty (plus
      adding some de-flake precautions).
      
      Original CL Description:
      Make gclient ready for the Blink (DEPS to main project) transition
      
      This CL makes gclient understand correctly whether a git project is
      being moved from DEPS to an upper project and vice-versa.
      The driving use case for this is the upcoming Blink merge, where
      third_party/Webkit will be removed from DEPS (and .gitignore) and will
      become part of the main project.
      
      At present state, gclient leaves the .git folder around when a project
      is removed from DEPS, and that causes many problems.
      
      Furthermore this CL solves the performance problem of bisecting across
      the merge point. The subproject's (Blink) .git/ folder is moved to a
      backup location (in the main checkout root) and is restored when moving
      backwards, avoiding a re-fetch when bisecting across the merge point.
      
      BUG=431469
      
      Review URL: https://codereview.chromium.org/910913003
      
      git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@294082 0039d316-1c4b-4281-b951-d872f2087c98
      1c127389
  28. 11 Dec, 2014 1 commit
    • primiano@chromium.org's avatar
      Revert of Make gclient ready for the Blink (DEPS to main project) transition... · a64c0b08
      primiano@chromium.org authored
      Revert of Make gclient ready for the Blink (DEPS to main project) transition (patchset #6 id:180001 of https://codereview.chromium.org/743083002/)
      
      Reason for revert:
      The test intoruced is flake (see crrev.com/753543006/).
      Need to look into that with more patience as it reproduces only on precise.
      
      
      Original issue's description:
      > Make gclient ready for the Blink (DEPS to main project) transition
      > 
      > This CL makes gclient understand correctly whether a git project is
      > being moved from DEPS to an upper project and vice-versa.
      > The driving use case for this is the upcoming Blink merge, where
      > third_party/Webkit will be removed from DEPS (and .gitignore) and will 
      > become part of the main project.
      > 
      > At present state, gclient leaves the .git folder around when a project
      > is removed from DEPS, and that causes many problems. 
      > 
      > Furthermore this CL solves the performance problem of bisecting across
      > the merge point. The subproject's (Blink) .git/ folder is moved to a
      > backup location (in the main checkout root) and is restored when moving
      > backwards, avoiding a re-fetch when bisecting across the merge point. 
      > 
      > BUG=431469
      > 
      > Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=293329
      
      TBR=iannucci@chromium.org,maruel@chromium.org,jochen@chromium.org
      NOTREECHECKS=true
      NOTRY=true
      BUG=431469
      
      Review URL: https://codereview.chromium.org/796053002
      
      git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@293352 0039d316-1c4b-4281-b951-d872f2087c98
      a64c0b08
  29. 10 Dec, 2014 1 commit
    • primiano@chromium.org's avatar
      Make gclient ready for the Blink (DEPS to main project) transition · fcf03763
      primiano@chromium.org authored
      This CL makes gclient understand correctly whether a git project is
      being moved from DEPS to an upper project and vice-versa.
      The driving use case for this is the upcoming Blink merge, where
      third_party/Webkit will be removed from DEPS (and .gitignore) and will 
      become part of the main project.
      
      At present state, gclient leaves the .git folder around when a project
      is removed from DEPS, and that causes many problems. 
      
      Furthermore this CL solves the performance problem of bisecting across
      the merge point. The subproject's (Blink) .git/ folder is moved to a
      backup location (in the main checkout root) and is restored when moving
      backwards, avoiding a re-fetch when bisecting across the merge point. 
      
      BUG=431469
      
      Review URL: https://codereview.chromium.org/743083002
      
      git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@293329 0039d316-1c4b-4281-b951-d872f2087c98
      fcf03763
  30. 09 Sep, 2014 1 commit
  31. 11 Jun, 2014 2 commits
  32. 23 Apr, 2014 1 commit
  33. 09 Apr, 2014 1 commit
  34. 03 Apr, 2014 1 commit
  35. 02 Apr, 2014 1 commit