Viewing basic branch information

The bzr info command prints the basic information about a specified location or the current working directory, such as the type of configuration, the parent branch, and others. For example:

$ bzr info /sandbox/hello
Shared repository with trees (format: 2a)
Location:
  shared repository: /sandbox/hello

That is, the location is a shared repository, which is configured with the trees option. This means that the new branches will be created with a working tree.

Note

In the later chapters, we will see examples where it is useful to create branches without a working tree, and will learn how to reconfigure branches and shared repositories to use this option.

In case of the fix-c branch, we get the following:

$ bzr info /sandbox/hello/fix-c/
Repository tree (format: 2a)
Location:
  shared repository: /sandbox/hello
  repository branch: /sandbox/hello/fix-c
Related branches:
  parent branch: /sandbox/hello/trunk

That is, the location is a branch, which is in the Repository tree configuration. This means that it is a part of a shared repository, and it has a working tree. The output also tells the location of the shared repository and the parent branch.

You can view even more details about a branch using the -v or --verbose flags.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.147.6.243