28: def run
29: repo = Repository.new @repo_dir
30:
31: if @current
32: puts "**** You are currently building ****"
33:
34: puts File.read(File.join(repo.work_dir, "meta-data.yaml"))
35: else
36: @id = repo.resolve_id(@rev, @id)
37:
38: if not @id
39: UI.failure :search, "Could not find the specified revision"
40: return
41: end
42:
43: cs_path, md = repo.find_changeset(@id)
44:
45: if not cs_path
46: UI.failure :constraint, "Wow, your repository looks hosed since #{id} doesn't exist in the changeset list"
47: else
48: puts "**** Currently applied revision ****"
49: YAML.dump(md, $stdout)
50: puts ""
51: end
52: end
53: end