aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/init.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/init.py
parent8cfbfcdb25fd2663a23adb4f2f6730240bd0da25 (diff)
downloadbugseverywhere-6d3fc831cdbba47a90b03706f25af1682abe862b.tar.gz
RCS -> VCS, BUGDIR_DISK_VERSION -> v1.2
Diffstat (limited to 'becommands/init.py')
-rw-r--r--becommands/init.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/becommands/init.py b/becommands/init.py
index 4156a26..1125d93 100644
--- a/becommands/init.py
+++ b/becommands/init.py
@@ -21,7 +21,7 @@ __desc__ = __doc__
def execute(args, manipulate_encodings=True):
"""
- >>> from libbe import utility, rcs
+ >>> from libbe import utility, vcs
>>> import os
>>> dir = utility.Dir()
>>> try:
@@ -36,14 +36,14 @@ def execute(args, manipulate_encodings=True):
>>> dir = utility.Dir()
>>> os.chdir(dir.path)
- >>> rcs = rcs.installed_rcs()
- >>> rcs.init('.')
- >>> print rcs.name
+ >>> vcs = vcs.installed_vcs()
+ >>> vcs.init('.')
+ >>> print vcs.name
Arch
>>> execute([], manipulate_encodings=False)
Using Arch for revision control.
Directory initialized.
- >>> rcs.cleanup()
+ >>> vcs.cleanup()
>>> try:
... execute(['--root', '.'], manipulate_encodings=False)
@@ -70,8 +70,8 @@ def execute(args, manipulate_encodings=True):
except bugdir.AlreadyInitialized:
raise cmdutil.UserError("Directory already initialized: %s" % options.root_dir)
bd.save()
- if bd.rcs.name is not "None":
- print "Using %s for revision control." % bd.rcs.name
+ if bd.vcs.name is not "None":
+ print "Using %s for revision control." % bd.vcs.name
else:
print "No revision control detected."
print "Directory initialized."
@@ -86,7 +86,7 @@ def get_parser():
longhelp="""
This command initializes Bugs Everywhere support for the specified directory
and all its subdirectories. It will auto-detect any supported revision control
-system. You can use "be set rcs_name" to change the rcs being used.
+system. You can use "be set vcs_name" to change the vcs being used.
The directory defaults to your current working directory.