Explorar o código

git-cl: Fix Change object construction for git-cl split

Changelist.GetChange signature was changed in
https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2038050

Bug: 1042324, 1054880
Change-Id: I6ba63e7f2f6c13bd8e8bef4e76cd66ee0525bba2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2067623
Reviewed-by: Josip Sokcevic <sokcevic@google.com>
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
Edward Lesmes %!s(int64=5) %!d(string=hai) anos
pai
achega
7c34a22537
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      split_cl.py

+ 1 - 1
split_cl.py

@@ -340,7 +340,7 @@ def SplitCl(description_file, comment_file, changelist, cmd_upload, dry_run,
     EnsureInGitRepository()
     EnsureInGitRepository()
 
 
     cl = changelist()
     cl = changelist()
-    change = cl.GetChange(cl.GetCommonAncestorWithUpstream(), None)
+    change = cl.GetChange(cl.GetCommonAncestorWithUpstream())
     files = change.AffectedFiles()
     files = change.AffectedFiles()
 
 
     if not files:
     if not files: