Chromium Code Reviews| Index: trychange.py |
| diff --git a/trychange.py b/trychange.py |
| index b5a98d80ce00e0dc83660c3615dd32cf3a71f5bd..1a1a51047bf82fd8f7df40e07445d4c0994ef509 100755 |
| --- a/trychange.py |
| +++ b/trychange.py |
| @@ -656,6 +656,11 @@ def TryChange(argv, |
| logging.debug(argv) |
| + if (options.patchlevel is not None and |
| + (options.patchlevel < 0 or options.patchlevel > 10)): |
| + parser.error( |
| + 'Have you tried --port instead? You probably confused -p and -P.') |
|
Dirk Pranke
2011/10/13 00:46:33
Nit: I'd probably use something like 100 instead o
M-A Ruel
2011/10/13 00:47:32
No, it's patchlevel, like patch -p1, not the numbe
|
| + |
| # Strip off any @ in the user, otherwise svn gets confused. |
| options.user = options.user.split('@', 1)[0] |