summaryrefslogtreecommitdiffstats
path: root/subcmds/version.py
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2019-07-10 15:32:36 -0400
committerMike Frysinger <vapier@google.com>2019-07-11 01:28:14 +0000
commit6db1b9e282c1bf6625ca19a595fb56be44ba276f (patch)
treed0e1152a57a00e6a0dd000becc95e6f0bda9cdd2 /subcmds/version.py
parent490e16385db3c0ba674cd6e03fa6e915e3f050ca (diff)
downloadgit-repo-6db1b9e282c1bf6625ca19a595fb56be44ba276f.tar.gz
repo: return a namedtuple with full version info
We were returning an e.g. tuple(1,2,3), but that strips off the full version string which we might want in some places e.g. '1.2.3-rc3'. Change the return value to a namedtuple so we can pass back up the full version string. For code doing a compare with three elements (all code today), things still work fine as the namedtuple will DTRT in this scenario. Bug: https://crbug.com/gerrit/11144 Change-Id: Ib897b5df308116ad1550b0cf18f49afeb662423e Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/231053 Reviewed-by: David Pursehouse <dpursehouse@collab.net> Tested-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'subcmds/version.py')
0 files changed, 0 insertions, 0 deletions