aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/command/init.py
diff options
context:
space:
mode:
Diffstat (limited to 'libbe/command/init.py')
-rw-r--r--libbe/command/init.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/libbe/command/init.py b/libbe/command/init.py
index 7fdbdae..7b83645 100644
--- a/libbe/command/init.py
+++ b/libbe/command/init.py
@@ -49,6 +49,9 @@ class Init (libbe.command.Command):
BE repository initialized.
>>> bd = libbe.bugdir.BugDir(vcs)
>>> vcs.disconnect()
+ >>> vcs.connect()
+ >>> bugdir = libbe.bugdir.BugDir(vcs, from_storage=True)
+ >>> vcs.disconnect()
>>> vcs.destroy()
>>> dir.cleanup()
@@ -66,6 +69,9 @@ class Init (libbe.command.Command):
Using ... for revision control.
BE repository initialized.
>>> vcs.disconnect()
+ >>> vcs.connect()
+ >>> bugdir = libbe.bugdir.BugDir(vcs, from_storage=True)
+ >>> vcs.disconnect()
>>> vcs.destroy()
>>> dir.cleanup()
"""
@@ -87,8 +93,9 @@ class Init (libbe.command.Command):
pass
storage.init()
storage.connect()
+ self.ui.storage_callbacks.set_storage(storage)
bd = libbe.bugdir.BugDir(storage, from_storage=False)
- bd.save()
+ self.ui.storage_callbacks.set_bugdir(bd)
if bd.storage.name is not 'None':
print >> self.stdout, \
'Using %s for revision control.' % storage.name