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

Side by Side Diff: git_merge_base_tag.py

Issue 184253003: Add git-reup and friends (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@freeze_thaw
Patch Set: Created 6 years, 9 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 unified diff | Download patch
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 # Copyright (c) 2014 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5 import sys
6
7 from subprocess2 import CalledProcessError
8
9 from git_common import nuke_merge_base_tag, manual_merge_base_tag
10
11
12 def main(argv):
13 # TODO(iannucci): Use argparse
14 assert len(argv) <= 2, "Must supply merge base or no arg."
15 if len(argv) == 2:
16 manual_merge_base_tag('HEAD', argv[1])
17 else:
agable 2014/02/28 20:14:16 "git merge-base-tag other-branch" creates a tag. "
18 try:
19 nuke_merge_base_tag('HEAD')
20 except CalledProcessError:
21 print "No merge base tag currently exists for this branch."
22 return 0
23
24
25 if __name__ == '__main__':
26 sys.exit(main(sys.argv))
27
28
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698