diff options
author | W. Trevor King <wking@drexel.edu> | 2009-07-19 10:50:28 -0400 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-07-19 10:50:28 -0400 |
commit | 22a2dd663c118b2962059ddfc60eb6ca8c2bce50 (patch) | |
tree | 28b0859433a251e9346ebe05b3928ccc1b83dfde /libbe/rcs.py | |
parent | daae395762a45dde2a388d3f4bb77de0601a1583 (diff) | |
parent | b3ce47285a66a35904e5e50636ce471ecb4ce29d (diff) | |
download | bugseverywhere-22a2dd663c118b2962059ddfc60eb6ca8c2bce50.tar.gz |
Merged becommands/commit.py addition from be.wtk-rr.
Diffstat (limited to 'libbe/rcs.py')
-rw-r--r-- | libbe/rcs.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libbe/rcs.py b/libbe/rcs.py index 1024249..7138d01 100644 --- a/libbe/rcs.py +++ b/libbe/rcs.py @@ -201,7 +201,7 @@ class RCS(object): """ Commit the current working directory, using the contents of commitfile as the comment. Return the name of the old - revision. + revision (or None if commits are not supported). """ return None def installed(self): @@ -370,8 +370,9 @@ class RCS(object): string summary and body. Return the name of the old revision (or None if versioning is not supported). """ + summary = summary.strip() if body is not None: - summary += '\n' + body + summary += '\n\n' + body.strip() + '\n' descriptor, filename = tempfile.mkstemp() revision = None try: |