OLD | NEW |
---|---|
(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 | |
OLD | NEW |