diff options
author | W. Trevor King <wking@drexel.edu> | 2009-07-29 15:49:45 -0400 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-07-29 15:49:45 -0400 |
commit | 22a38de80ee11ada710bc6766798ca608f938307 (patch) | |
tree | d0c3dcb844ce9c88213ef7b70c8545abd7c77559 /libbe/hg.py | |
parent | 59f6dd7c96df1cb33ad9b409574cab1c26b12243 (diff) | |
download | bugseverywhere-22a38de80ee11ada710bc6766798ca608f938307.tar.gz |
Corrected some problems with revision_id() before an initial commit.
Diffstat (limited to 'libbe/hg.py')
-rw-r--r-- | libbe/hg.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libbe/hg.py b/libbe/hg.py index fcda829..31df1d0 100644 --- a/libbe/hg.py +++ b/libbe/hg.py @@ -86,7 +86,10 @@ class Hg(RCS): kwargs = {"expect": (0,255)} status,output,error = self._u_invoke_client(*args, **kwargs) if status == 0: - return output.strip() + id = output.strip() + if id == '000000000000': + return None # before initial commit. + return id return None |