Class: PVN::Seek::SeekRevisionOption

Inherits:
MultipleRevisionsRegexpOption show all
Defined in:
lib/pvn/seek/options.rb

Constant Summary collapse

REVISION_DESCRIPTION =
PVN::RevisionRegexpOption::REVISION_DESCRIPTION + 
[
 'Zero, one, or two revisions may be specified:',
 '    A single revision is the equivalent of -rN:HEAD.',
 '    Multiple revisions are the equivalent of -rM:N.'
]

Constants inherited from RevisionRegexpOption

RevisionRegexpOption::TAG_RE

Constants inherited from BaseOption

BaseOption::NO_CMDLINE_OPTION

Instance Attribute Summary

Attributes inherited from RevisionOption

#fromdate, #todate

Attributes inherited from BaseOption

#default, #name, #negate, #regexp, #tag

Instance Method Summary collapse

Methods inherited from MultipleRevisionsRegexpOption

#set_value

Methods inherited from RevisionRegexpOption

#initialize

Methods inherited from RevisionOption

#initialize, #to_svn_revision_date, #value

Methods inherited from BaseRevisionOption

#entry, #head?, #relative_to_absolute, #run_log_command

Methods inherited from BaseOption

#exact_match?, #initialize, #negative_match?, #next_argument, #post_process, #process, #regexp_match?, #set_value, #takes_value?, #to_command_line, #to_doc, #to_s, #unset, #value

Constructor Details

This class inherits a constructor from PVN::RevisionRegexpOption

Instance Method Details

#descriptionObject



36
37
38
# File 'lib/pvn/seek/options.rb', line 36

def description
  REVISION_DESCRIPTION
end

#resolve_value(optset, unprocessed) ⇒ Object



32
33
34
# File 'lib/pvn/seek/options.rb', line 32

def resolve_value optset, unprocessed
  super optset, unprocessed[-1, 1]
end