Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Trac
Trac
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Create a new issue
  • Issue Boards

GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

  • Legacy
  • TracTrac
  • Issues
  • #4210

Closed (moved)
Open
Opened Oct 08, 2011 by Damian Johnson@atagar

Undefined version comparisions

While writing the version parsing for stem I noticed that the version spec [1] doesn't define how to compare empty tags and patch levels. For instance, if "1.2.3.4-myTag" is a greater or lower version than "1.2.3-myTag".

My suggestion would be to add a note that an undefined patch is zero and undefined tag equates to the empty string. Ie...

"1.2.3-myTag" == "1.2.3.0-myTag" "1.2.3.4" == "1.2.3.4-"

Cheers! -Damian

[1] https://gitweb.torproject.org/torspec.git/blob/HEAD:/version-spec.txt

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Tor: unspecified
Milestone
Tor: unspecified
Assign milestone
Time tracking
None
Due date
None
Reference: legacy/trac#4210