Class: Shh::Command::ExhumeEntry
Instance Method Summary
collapse
#completion, #initialize, #usage
Instance Method Details
#execute(text = nil) ⇒ Object
12
13
14
15
16
17
|
# File 'lib/shh/command/exhume_entry.rb', line 12
def execute text=nil
with_current_and_historic_entry(text) do |current, changeset, historic|
puts "warning: you are viewing #{historic['name']} as at #{changeset.id}, any changes you make will be discarded"
Shh::EntryMenu.new(@io, historic).push
end
end
|
#help ⇒ Object
8
9
10
|
# File 'lib/shh/command/exhume_entry.rb', line 8
def help
"Enters a subshell for viewing the specifed entry as it was at the specified revision\nRevision is a number representing the number of changesets to go back in history (ie. 0 is the most recently committed version)"
end
|