Revision: 19876
Author: [email protected]
Date: Thu Mar 13 07:57:07 2014 UTC
Log: Add file exclusion to trunk patch creation in push-to-trunk.
This is another step towards getting rid of the bleeding edge change log
file. Now it can be omitted in a follow up CL.
[email protected]
Review URL: https://codereview.chromium.org/197023004
http://code.google.com/p/v8/source/detail?r=19876
Modified:
/branches/bleeding_edge/tools/push-to-trunk/git_recipes.py
/branches/bleeding_edge/tools/push-to-trunk/test_scripts.py
=======================================
--- /branches/bleeding_edge/tools/push-to-trunk/git_recipes.py Wed Mar 12
10:45:23 2014 UTC
+++ /branches/bleeding_edge/tools/push-to-trunk/git_recipes.py Thu Mar 13
07:57:07 2014 UTC
@@ -133,8 +133,11 @@
def GitDCommit(self):
self.Git("cl dcommit -f --bypass-hooks", retry_on=lambda x: x is None)
- def GitDiff(self, loc1, loc2):
- return self.Git(MakeArgs(["diff", loc1, loc2]))
+ def GitDiff(self, loc1, loc2, exclude=None):
+ exclude = exclude or []
+ files = self.Git(MakeArgs(["diff", "--name-only", loc1, loc2]))
+ files = filter(lambda f: f not in exclude, files.strip().splitlines())
+ return self.Git(MakeArgs(["diff", loc1, loc2] + files))
def GitPull(self):
self.Git("pull")
=======================================
--- /branches/bleeding_edge/tools/push-to-trunk/test_scripts.py Wed Mar 12
14:39:04 2014 UTC
+++ /branches/bleeding_edge/tools/push-to-trunk/test_scripts.py Thu Mar 13
07:57:07 2014 UTC
@@ -589,7 +589,8 @@
f.write(change_log)
self.ExpectGit([
- Git("diff svn/trunk hash1", "patch content"),
+ Git("diff --name-only svn/trunk hash1", "file1\nfile2\n"),
+ Git("diff svn/trunk hash1 file1 file2", "patch content"),
Git("svn find-rev hash1", "123455\n"),
])
@@ -710,7 +711,8 @@
Git(("log -1 --format=%H --grep=\"Prepare push to trunk. "
"Now working on version 3.22.6.\""),
"hash1\n"),
- Git("diff svn/trunk hash1", "patch content\n"),
+ Git("diff --name-only svn/trunk hash1", "file1\nfile2\n"),
+ Git("diff svn/trunk hash1 file1 file2", "patch content"),
Git("svn find-rev hash1", "123455\n"),
Git("checkout -b %s svn/trunk" % TEST_CONFIG[TRUNKBRANCH], ""),
Git("apply --index --reject \"%s\"" % TEST_CONFIG[PATCH_FILE], ""),
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.