55: def run
56: repo = Repository.new @repo_dir
57:
58: print_readable_path(repo)
59:
60:
61: if @rev
62:
63: possibles = repo.find_revision(@rev)
64: possibles.each do |rev, id|
65: path, md = repo.find_changeset(id)
66: puts "#{rev} -- #{id} -- #{md['Created By']['E-Mail']}"
67: print_children(repo, id)
68: end
69: else
70: id = repo['Path'].pop
71: print_children(repo, id)
72: end
73:
74: if repo['Current Revision']
75: md = MetaData.load_metadata(File.join(repo.work_dir, "meta-data.yaml"))
76: puts "Current Revision: #{md['Revision']} -- #{repo['Current Revision']}"
77: end
78: end