Chromium Code Reviews| Index: git_cl.py |
| diff --git a/git_cl.py b/git_cl.py |
| index e0bf935cd99cb2e74317f8dda2e89713e0b358af..a8c92d04e8bd2f3b18238b566e2a2a17c6e4ccfa 100755 |
| --- a/git_cl.py |
| +++ b/git_cl.py |
| @@ -1796,6 +1796,17 @@ def CMDset_commit(parser, args): |
| cl.SetFlag('commit', '1') |
| return 0 |
|
M-A Ruel
2013/02/26 14:04:22
2 lines
groby-ooo-7-16
2013/02/26 15:06:55
Done.
|
| +def CMDset_close(parser, args): |
| + """set the close bit""" |
|
M-A Ruel
2013/02/26 14:04:22
"""close the issue"""
groby-ooo-7-16
2013/02/26 15:06:55
Done.
|
| + _, args = parser.parse_args(args) |
| + if args: |
| + parser.error('Unrecognized args: %s' % ' '.join(args)) |
| + cl = Changelist() |
| + # Ensure there actually is an issue to close. |
| + cl.GetDescription() |
| + cl.CloseIssue() |
| + return 0 |
| + |
| def Command(name): |
| return getattr(sys.modules[__name__], 'CMD' + name, None) |