Module: BzrWrapper
- Defined in:
- lib/bzrwrapper.rb
Overview
Extract information of bzr-branches
pp branch = BzrWrapper::Branch.new(‘/home/rp/devel/rubzr’) -> <BzrWrapper::Branch:0x2b7b13335ce8
@path="/home/rp/devel/rubzr",
@version_info=
#<BzrWrapper::Info:0x2b7b133352c0
@branch_nick=" rubzr",
@date=Wed Aug 22 11:22:03 +0200 2007,
@revision_id=" rp@dwarf-20070822092203-xzink973ch9e5d07",
@revno=" 6">>
-
iterate over the commits
branch.log.each_entry { |e| puts e.time.to_s }
-> Tue Aug 21 16:58:29 +0200 2007
-> Tue Aug 21 16:57:22 +0200 2007
-
get the latest 2 commits
BzrWrapper::Branch.new(‘/home/rp/devel/rubzr’).last_commits(2) { |c| puts c.message + “ / ” + c.time.to_s }
-> added Info / Tue Aug 21 16:57:22 +0200 2007
-> log-parsing... / Tue Aug 21 21:05:42 +0200 2007
Classes
-
BzrWrapper::Branch
-
BzrWrapper::Log
-
BzrWrapper::Info
-
BzrWrapper::Commit
Defined Under Namespace
Classes: Branch, BzrException, Commit, Info, Log