Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1234)

Unified Diff: trychange.py

Issue 231663005: Put patches to refs/patches/<username>/<patchname> (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: KISS Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trychange.py
diff --git a/trychange.py b/trychange.py
index 8a6e35eac380b4da19d3a92eb181672681c66426..8fe2b5fb17eafa0ff879d0d2bbf5bd92a515d216 100755
--- a/trychange.py
+++ b/trychange.py
@@ -640,12 +640,13 @@ def _SendChangeGit(bot_spec, options):
with _PrepareDescriptionAndPatchFiles(description, options) as (
patch_filename, description_filename):
logging.info('Committing patch')
- target_branch = ('refs/patches/' +
- os.path.basename(patch_filename).replace(' ','-'))
+ target_branch = 'refs/patches/%s/%s' % (
+ Escape(options.user),
+ os.path.basename(patch_filename).replace(' ','_'))
target_filename = os.path.join(patch_dir, 'patch.diff')
branch_file = os.path.join(patch_dir, GIT_BRANCH_FILE)
try:
- # Crete a new branch and put the patch there
+ # Create a new branch and put the patch there.
patch_git('checkout', '--orphan', target_branch)
patch_git('reset')
patch_git('clean', '-f')
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698