[GRASS-dev] [GRASS GIS] #3877: grass77 --config revision broken

#3877: grass77 --config revision broken
-------------------------+-------------------------
Reporter: neteler | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.8.0
Component: Python | Version: svn-trunk
Keywords: grass.py | CPU: Unspecified
Platform: Unspecified |
-------------------------+-------------------------
Some recent changes broke `--config` partially:

{{{
## ok
grass77 --config version
7.7.dev

grass77 --config svn_revision
fdb74d2d

## broken
grass77 --config revision
Traceback (most recent call last):
   File "/home/mneteler/bin/grass77", line 2204, in <module>
     main()
   File "/home/mneteler/bin/grass77", line 2018, in main
     params = parse_cmdline(sys.argv[1:], default_gui=default_gui)
   File "/home/mneteler/bin/grass77", line 1939, in parse_cmdline
     print_params()
   File "/home/mneteler/bin/grass77", line 1850, in print_params
     "%s\n" % val[0].split(':')[1].rstrip('$"\n').strip())
IndexError: list index out of range
}}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3877&gt;
GRASS GIS <https://grass.osgeo.org>

#3877: grass77 --config revision broken
--------------------------+-------------------------
  Reporter: neteler | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.8.0
Component: Python | Version: svn-trunk
Resolution: | Keywords: grass.py
       CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------

Comment (by wenzeslaus):

It was there before
https://github.com/OSGeo/grass/commit/bfdb74d2d27280aa41c5256dbe3be999510e04f0
(https://github.com/OSGeo/grass/pull/62) and from the quick check I did I
was guessing Git migration because `gis.h` is used there and:

{{{
$ grep "define GIS_H_VERSION" dist.x86_64-pc-linux-gnu/include/grass/gis.h
#define GIS_H_VERSION "$Revision$"
}}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3877#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>