Class: Shh::Command::ExhumeEntry

Inherits:
Object
  • Object
show all
Includes:
HistoricEntryCommand
Defined in:
lib/shh/command/exhume_entry.rb

Instance Method Summary collapse

Methods included from HistoricEntryCommand

#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

#helpObject



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