basic BazaarClient use

Asked by Jesse Greenslade

Are there any examples of the use of this class?

I'm trying to run basic commands on my local machine,
Say i have strings with the paths of my local branch and the source location, how do I check that these locations are actually bzr repositories? what if the source repo needs a password? Is there a way to get a list of commits since my last pull? etc...

I'm messing around with the library now, but I'd really like to see some good read-me's on this.

Should I start a doc to show the commands i figure out? this could speed up the learning curve considerably.

cheers,
Jesse

Question information

Language:
English Edit question
Status:
Answered
For:
Java library for Bazaar Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Guillermo Gonzalez (verterok) said :
#1

Hi Jesse,

If there are missing Javadocs, please file a bug ;-)

To know if a path is a branch, there are some utilities in the utils/BazaarUtilities class to find a branch (it search upwards for a .bzr directory), also you could use the client to do that, e.g: using IBazaarClient.info

The API is quite similar to the command line interface, e.g:
 - to get the logs: IBazaarClient.log
 - to commit: IBazaarClient.commit
 - to revert the changes: IBazaarClient.revert
 - to push the changes: IBazaarClient.push
etc...

Hope this help.

Let me know if you have other questions.

Regards,

Revision history for this message
jwg366 (jwg366) said :
#2

how do i add the javadocs to eclipse ide?

how do i do the following?
I want to call
bzr version-info --include-history
and collect the commits, but i do not know how to use the options class

cheers,
Jesse

Revision history for this message
Guillermo Gonzalez (verterok) said :
#3

Hi,
Apologize the delay, I completely missed the request for more info.

In order to get the javadocs added, you could just link the source with jar in: Project Properties --> Java Build Path --> Libraries. expand the bzr-java-lib entry and edit "Source attachments"

The Java version of: "bzr version-info --include-history", is something like:

IBazaarClient.versionInfo(new BranchLocation("path/or/url/to/branch"), IVersionInfoOptions.INCLUDE_HISTORY)

Regards,

Can you help with this problem?

Provide an answer of your own, or ask Jesse Greenslade for more information if necessary.

To post a message you must log in.