Module: Amp::RevlogSupport::Node
- Included in:
- Bundles::BundleRevlog, Changeset, Amp::Repositories::BranchManager, Amp::Repositories::DirState, Amp::Repositories::HTTPRepository, Amp::Repositories::LocalRepository, Amp::Repositories::TagManager, Amp::Repositories::Updatable, Amp::Revlog, Amp::RevlogSupport, VersionedFile
- Defined in:
- lib/amp/revlogs/node.rb
Constant Summary collapse
- NULL_ID =
the null node ID - just 20 null bytes
"\0" * 20
- NULL_REV =
-1 is the null revision (the last one in the index)
-1
Instance Method Summary collapse
-
#short(node) ⇒ String
Returns the node in a short hexadecimal format - only 6 bytes => 12 hex bytes.
Instance Method Details
#short(node) ⇒ String
Returns the node in a short hexadecimal format - only 6 bytes => 12 hex bytes
13 14 15 |
# File 'lib/amp/revlogs/node.rb', line 13 def short(node) node.short_hex end |