Lines Matching full:cmd
98 def Cmd(*args, **kwargs): function
252 def Command(self, cmd, args="", prefix="", pipe=True, cwd=None): argument
253 print("%s %s" % (cmd, args))
255 return self._mock.Call("command", cmd + " " + args, cwd=cwd)
296 self.Expect([Cmd("git --version", "git version 1.2.3"),
297 Cmd("git dummy", "")])
303 Cmd("git status -s -uno", ""),
304 Cmd("git checkout -f origin/main", ""),
305 Cmd("git fetch", ""),
306 Cmd("git branch", " branch1\n* %s" % TEST_CONFIG["BRANCHNAME"]),
308 Cmd("git branch -D %s" % TEST_CONFIG["BRANCHNAME"], ""),
315 Cmd("git status -s -uno", ""),
316 Cmd("git checkout -f origin/main", ""),
317 Cmd("git fetch", ""),
318 Cmd("git branch", " branch1\n* %s" % TEST_CONFIG["BRANCHNAME"]),
326 Cmd("git status -s -uno", ""),
327 Cmd("git checkout -f origin/main", ""),
328 Cmd("git fetch", ""),
329 Cmd("git branch", " branch1\n* %s" % TEST_CONFIG["BRANCHNAME"]),
331 Cmd("git branch -D %s" % TEST_CONFIG["BRANCHNAME"], None),
340 Cmd("which vi", "/usr/bin/vi"),
346 Cmd("git fetch", ""),
347 Cmd("git log -1 --format=%H --grep=\"Title\" origin/tag_name", ""),
348 Cmd("git fetch", ""),
349 Cmd("git log -1 --format=%H --grep=\"Title\" origin/tag_name", ""),
350 Cmd("git fetch", ""),
351 Cmd("git log -1 --format=%H --grep=\"Title\" origin/tag_name", ""),
352 Cmd("git fetch", ""),
353 Cmd("git log -1 --format=%H --grep=\"Title\" origin/tag_name", ""),
403 Cmd("git fetch origin +refs/tags/*:refs/tags/*", ""),
404 Cmd("git tag", self.TAGS),
405 Cmd("git checkout -f origin/main -- include/v8-version.h",
427 Cmd("fetch v8", "", cwd=work_dir),
452 Cmd("git fetch origin +refs/heads/*:refs/heads/*", ""),
453 Cmd("git checkout -f origin/main", "", cb=self.WriteFakeWatchlistsFile),
454 Cmd("git branch", ""),
455 Cmd("git fetch origin +refs/tags/*:refs/tags/*", ""),
456 Cmd("git tag", self.TAGS),
457 Cmd("git checkout -f origin/main -- include/v8-version.h",
459 Cmd("git log -1 --format=%H 3.22.4", "release_hash\n"),
460 Cmd("git log -1 --format=%s release_hash", "Version 3.22.4\n"),
461 Cmd("git log -1 --format=%H release_hash^", "abc3\n"),
462 Cmd("git log --format=%H abc3..push_hash", "rev1\n"),
463 Cmd("git push origin push_hash:refs/heads/3.22.5", ""),
464 Cmd("git reset --hard origin/main", ""),
465 Cmd("git new-branch work-branch --upstream origin/3.22.5", ""),
466 Cmd("git checkout -f 3.22.4 -- include/v8-version.h", "",
468 Cmd("git commit -aF \"%s\"" % TEST_CONFIG["COMMITMSG_FILE"], "",
470 Cmd("git cl upload --send-mail "
473 Cmd("git cl land --bypass-hooks -f", ""),
474 Cmd("git fetch", ""),
475 Cmd("git log -1 --format=%H --grep="
477 Cmd("git tag 3.22.5 hsh_to_tag", ""),
478 Cmd("git push origin refs/tags/3.22.5:refs/tags/3.22.5", ""),
479 Cmd("git checkout -f origin/main", ""),
480 Cmd("git branch", "* main\n work-branch\n"),
481 Cmd("git branch -D work-branch", ""),
482 Cmd("git gc", ""),
562 Cmd("git fetch origin", ""),
563 Cmd("git fetch origin +refs/tags/*:refs/tags/*", ""),
564 Cmd("gclient getdep -r src/v8", "last_roll_hsh", cwd=chrome_dir),
565 Cmd("git describe --tags last_roll_hsh", "3.22.4"),
566 Cmd("git fetch origin +refs/tags/*:refs/tags/*", ""),
567 Cmd("git rev-list --max-age=395200 --tags",
569 Cmd("git describe --tags bad_tag", ""),
570 Cmd("git describe --tags roll_hsh", "3.22.4"),
571 Cmd("git describe --tags hash_123", "3.22.3"),
572 Cmd("git describe --tags roll_hsh", "3.22.4"),
573 Cmd("git describe --tags hash_123", "3.22.3"),
599 Cmd("git fetch origin", ""),
600 Cmd("git fetch origin +refs/tags/*:refs/tags/*", ""),
601 Cmd("gclient getdep -r src/v8", "last_roll_hsh", cwd=chrome_dir),
602 Cmd("git describe --tags last_roll_hsh", "3.22.3.1"),
603 Cmd("git fetch origin +refs/tags/*:refs/tags/*", ""),
604 Cmd("git rev-list --max-age=395200 --tags",
606 Cmd("git describe --tags bad_tag", ""),
607 Cmd("git describe --tags roll_hsh", "3.22.4"),
608 Cmd("git describe --tags hash_123", "3.22.3"),
609 Cmd("git describe --tags roll_hsh", "3.22.4"),
610 Cmd("git log -1 --format=%s roll_hsh", "Version 3.22.4\n"),
611 Cmd("git describe --tags roll_hsh", "3.22.4"),
612 Cmd("git describe --tags last_roll_hsh", "3.22.2.1"),
613 Cmd("git status -s -uno", "", cwd=chrome_dir),
614 Cmd("git checkout -f main", "", cwd=chrome_dir),
615 Cmd("git branch", "", cwd=chrome_dir),
616 Cmd("git pull", "", cwd=chrome_dir),
617 Cmd("git fetch origin", ""),
618 Cmd("git new-branch work-branch", "", cwd=chrome_dir),
619 Cmd("gclient setdep -r src/v8@roll_hsh", "", cb=WriteDeps,
621 Cmd(("git commit -am \"%s\" "
625 Cmd("git cl upload --send-mail -f "
628 Cmd("git checkout -f main", "", cwd=chrome_dir),
629 Cmd("git branch -D work-branch", "", cwd=chrome_dir),
645 Cmd("git fetch origin +refs/tags/*:refs/tags/*", ""),
646 Cmd("git tag", self.TAGS),
647 Cmd("git log -1 --format=%H 3.22.4", "release_hash\n"),
648 Cmd("git log -1 --format=%s release_hash",
650 Cmd("git log --format=%H abc3..abc123", "\n"),
659 Cmd("git fetch", ""),
660 Cmd("git fetch origin +refs/heads/lkgr:refs/heads/lkgr", ""),
661 Cmd("git show-ref -s refs/heads/lkgr", "abc123\n"),
662 Cmd("git fetch origin +refs/tags/*:refs/tags/*", ""),
663 Cmd("git tag", self.TAGS),
664 Cmd("git log -1 --format=%H 3.22.4", "release_hash\n"),
665 Cmd("git log -1 --format=%s release_hash",
667 Cmd("git log --format=%H abc3..abc123", "some_stuff\n"),
721 Cmd("git status -s -uno", ""),
722 Cmd("git checkout -f origin/main", ""),
723 Cmd("git fetch", ""),
724 Cmd("git branch", " branch1\n* branch2\n"),
725 Cmd("git new-branch %s --upstream refs/remotes/origin/candidates" %
727 Cmd(("git log --format=%H --grep=\"Port ab12345\" "
730 Cmd("git log -1 --format=%s ab45678", "Title1"),
731 Cmd("git log -1 --format=%s ab23456", "Title2"),
732 Cmd(("git log --format=%H --grep=\"Port ab23456\" "
735 Cmd(("git log --format=%H --grep=\"Port ab34567\" "
738 Cmd("git log -1 --format=%s ab56789", "Title3"),
741 Cmd("git log -1 --format=%s ab12345", None),
743 Cmd("git log -1 --format=%s ab12345", "Title4"),
744 Cmd("git log -1 --format=%s ab23456", "Title2"),
745 Cmd("git log -1 --format=%s ab34567", "Title3"),
746 Cmd("git log -1 --format=%s ab45678", "Title1"),
747 Cmd("git log -1 --format=%s ab56789", "Revert \"Something\""),
748 Cmd("git log -1 ab12345", "Title4\nBUG=123\nBUG=234"),
749 Cmd("git log -1 ab23456", "Title2\n BUG = v8:123,345"),
750 Cmd("git log -1 ab34567", "Title3\nBUG=567, 456"),
751 Cmd("git log -1 ab45678", "Title1\nBUG="),
752 Cmd("git log -1 ab56789", "Revert \"Something\"\nBUG=none"),
753 Cmd("git log -1 -p ab12345", "patch4"),
754 Cmd(("git apply --index --reject \"%s\"" %
757 Cmd("git log -1 -p ab23456", "patch2"),
758 Cmd(("git apply --index --reject \"%s\"" %
761 Cmd("git log -1 -p ab34567", "patch3"),
762 Cmd(("git apply --index --reject \"%s\"" %
765 Cmd("git log -1 -p ab45678", "patch1"),
766 Cmd(("git apply --index --reject \"%s\"" %
769 Cmd("git log -1 -p ab56789", "patch5\n"),
770 Cmd(("git apply --index --reject \"%s\"" %
773 Cmd("git apply --index --reject \"%s\"" % extra_patch, ""),
775 Cmd("git commit -aF \"%s\"" % TEST_CONFIG["COMMITMSG_FILE"], ""),
777 Cmd("git cl upload --send-mail -r \"reviewer@chromium.org\" "
779 Cmd("git checkout -f %s" % TEST_CONFIG["BRANCHNAME"], ""),
781 Cmd("git cl presubmit", "Presubmit successfull\n"),
782 Cmd("git cl land -f --bypass-hooks", "Closing issue\n",
784 Cmd("git fetch", ""),
785 Cmd("git log -1 --format=%H --grep=\""
789 Cmd("git fetch", ""),
790 Cmd("git log -1 --format=%H --grep=\""
794 Cmd("git tag 3.22.5.1 hsh_to_tag", ""),
795 Cmd("git push origin refs/tags/3.22.5.1:refs/tags/3.22.5.1", ""),
796 Cmd("git checkout -f origin/main", ""),
797 Cmd("git branch -D %s" % TEST_CONFIG["BRANCHNAME"], ""),
858 Cmd("git status -s -uno", ""),
859 Cmd("git checkout -f origin/main", ""),
860 Cmd("git fetch", ""),
861 Cmd("git branch", " branch1\n* branch2\n"),
862 Cmd("git new-branch %s --upstream refs/remotes/origin/candidates" %
864 Cmd(("git log --format=%H --grep=\"^[Pp]ort ab12345\" "
867 Cmd("git log -1 --format=%s ab45678", "Title1"),
868 Cmd("git log -1 --format=%s ab23456", "Title2"),
869 Cmd(("git log --format=%H --grep=\"^[Pp]ort ab23456\" "
872 Cmd(("git log --format=%H --grep=\"^[Pp]ort ab34567\" "
875 Cmd("git log -1 --format=%s ab56789", "Title3"),
878 Cmd("git log -1 --format=%s ab12345", None),
880 Cmd("git log -1 --format=%s ab12345", "Title4"),
881 Cmd("git log -1 --format=%s ab23456", "Title2"),
882 Cmd("git log -1 --format=%s ab34567", "Title3"),
883 Cmd("git log -1 --format=%s ab45678", "Title1"),
884 Cmd("git log -1 --format=%s ab56789", "Revert \"Something\""),
885 Cmd("git log -1 ab12345", "Title4\nBUG=123\nBUG=234"),
886 Cmd("git log -1 ab23456", "Title2\n BUG = v8:123,345"),
887 Cmd("git log -1 ab34567", "Title3\nBug: 567, 456,345"),
888 Cmd("git log -1 ab45678", "Title1\nBug:"),
889 Cmd("git log -1 ab56789", "Revert \"Something\"\nBUG=none"),
890 Cmd("git log -1 -p ab12345", "patch4"),
891 Cmd(("git apply --index --reject \"%s\"" %
894 Cmd("git log -1 -p ab23456", "patch2"),
895 Cmd(("git apply --index --reject \"%s\"" %
898 Cmd("git log -1 -p ab34567", "patch3"),
899 Cmd(("git apply --index --reject \"%s\"" %
902 Cmd("git log -1 -p ab45678", "patch1"),
903 Cmd(("git apply --index --reject \"%s\"" %
906 Cmd("git log -1 -p ab56789", "patch5\n"),
907 Cmd(("git apply --index --reject \"%s\"" %
910 Cmd("git apply --index --reject \"%s\"" % extra_patch, ""),
911 Cmd("git commit -aF \"%s\"" % TEST_CONFIG["COMMITMSG_FILE"], ""),
913 Cmd("git cl upload --send-mail -r \"reviewer@chromium.org\" "
915 Cmd("git checkout -f %s" % TEST_CONFIG["BRANCHNAME"], ""),
917 Cmd("git cl presubmit", "Presubmit successfull\n"),
918 Cmd("git cl land -f --bypass-hooks", "Closing issue\n",
920 Cmd("git checkout -f origin/main", ""),
921 Cmd("git branch -D %s" % TEST_CONFIG["BRANCHNAME"], ""),