aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/commit.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-08-31 13:43:32 -0400
committerW. Trevor King <wking@drexel.edu>2009-08-31 13:43:32 -0400
commit6d3fc831cdbba47a90b03706f25af1682abe862b (patch)
tree488a20266ba19106940b6eb4d2f7d257f2d67ab6 /becommands/commit.py
parent8cfbfcdb25fd2663a23adb4f2f6730240bd0da25 (diff)
downloadbugseverywhere-6d3fc831cdbba47a90b03706f25af1682abe862b.tar.gz
RCS -> VCS, BUGDIR_DISK_VERSION -> v1.2
Diffstat (limited to 'becommands/commit.py')
-rw-r--r--becommands/commit.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/becommands/commit.py b/becommands/commit.py
index fb85651..dc70e7e 100644
--- a/becommands/commit.py
+++ b/becommands/commit.py
@@ -14,7 +14,7 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
"""Commit the currently pending changes to the repository"""
-from libbe import cmdutil, bugdir, editor, rcs
+from libbe import cmdutil, bugdir, editor, vcs
import sys
__desc__ = __doc__
@@ -26,7 +26,7 @@ def execute(args, manipulate_encodings=True):
>>> os.chdir(bd.root)
>>> full_path = "testfile"
>>> test_contents = "A test file"
- >>> bd.rcs.set_file_contents(full_path, test_contents)
+ >>> bd.vcs.set_file_contents(full_path, test_contents)
>>> execute(["Added %s." % (full_path)], manipulate_encodings=False) # doctest: +ELLIPSIS
Committed ...
>>> bd.cleanup()
@@ -49,11 +49,11 @@ def execute(args, manipulate_encodings=True):
elif options.body == "EDITOR":
body = editor.editor_string("Please enter your commit message above")
else:
- body = bd.rcs.get_file_contents(options.body, allow_no_rcs=True)
+ body = bd.vcs.get_file_contents(options.body, allow_no_vcs=True)
try:
- revision = bd.rcs.commit(summary, body=body,
+ revision = bd.vcs.commit(summary, body=body,
allow_empty=options.allow_empty)
- except rcs.EmptyCommit, e:
+ except vcs.EmptyCommit, e:
print e
return 1
else: