def create_new_branch(revision=u'', settings=None):
 model = main.MainModel()
 model.update_status()
 view = CreateBranchDialog(model, settings=settings, parent=qtutils.active_window())
 if revision:
  view.set_revision(revision)
 view.show()
 return view

def create_new_branch ( revision = u'' , settings = None ) : model = main . MainModel ( ) model . update_status ( ) view = CreateBranchDialog ( model , settings = settings , parent = qtutils . active_window ( ) ) if revision : view . set_revision ( revision ) view . show ( ) return view
launches a dialog for creating a new branch .