| Index: gclient_utils.py
|
| diff --git a/gclient_utils.py b/gclient_utils.py
|
| index 9953223898e03cbff726d2984a03bdf96e583b31..81a1f667e63f3e45434b1073fecd452171970b20 100644
|
| --- a/gclient_utils.py
|
| +++ b/gclient_utils.py
|
| @@ -112,6 +112,17 @@ def SplitUrlRevision(url):
|
| return tuple(components)
|
|
|
|
|
| +def IsDateRevision(revision):
|
| + """Returns true if the given revision is of the form "{ ... }"."""
|
| + return bool(revision and re.match(r'^\{.+\}$', str(revision)))
|
| +
|
| +
|
| +def MakeDateRevision(date):
|
| + """Returns a revision representing the latest revision before the given
|
| + date."""
|
| + return "{" + date + "}"
|
| +
|
| +
|
| def SyntaxErrorToError(filename, e):
|
| """Raises a gclient_utils.Error exception with the human readable message"""
|
| try:
|
|
|