status to only show parent dir of many unknown files

Harvey Chapman hchapman-hg at 3gfp.com
Fri Feb 20 13:32:25 UTC 2015


> On Feb 19, 2015, at 5:29 PM, Sean Farley <sean.michael.farley at gmail.com> wrote:
> Harvey Chapman writes:
> 
>> Is there a way to get the status command to only show a new, unknown parent directory and not all of the unknown children?
>> Example:
>> 
>> 
>> $ hg status
>> ? new_dir/a
>> ? new_dir/b
>> ? new_dir/c
>> ? new_dir/d
>> 
>> What I want:
>> 
>> $ hg status
>> ? new_dir
> 
> Martin wrote a nice little extension for this at the last sprint:
> 
> https://bitbucket.org/mg/terse-status

Ah, thank you! It seems broken at the moment with 3.3, but I’ll look and see if it’s something obvious.

Traceback (most recent call last):
  File "/usr/local/bin/hg", line 43, in <module>
    mercurial.dispatch.run()
  File "/usr/local/Cellar/mercurial/3.3/lib/python2.7/site-packages/mercurial/dispatch.py", line 28, in run
    sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
  File "/usr/local/Cellar/mercurial/3.3/lib/python2.7/site-packages/mercurial/dispatch.py", line 71, in dispatch
    ret = _runcatch(req)
  File "/usr/local/Cellar/mercurial/3.3/lib/python2.7/site-packages/mercurial/dispatch.py", line 140, in _runcatch
    return _dispatch(req)
  File "/usr/local/Cellar/mercurial/3.3/lib/python2.7/site-packages/mercurial/dispatch.py", line 721, in _dispatch
    extensions.loadall(lui)
  File "/usr/local/Cellar/mercurial/3.3/lib/python2.7/site-packages/mercurial/extensions.py", line 120, in loadall
    extsetup(ui)
  File "/Users/hchapman/.hgrc.d/terse-status/terse-status.py", line 40, in extsetup
    '_poststatus', _poststatus)
  File "/usr/local/Cellar/mercurial/3.3/lib/python2.7/site-packages/mercurial/extensions.py", line 196, in wrapfunction
    origfn = getattr(container, funcname)
AttributeError: type object 'workingctx' has no attribute '_poststatus'


More information about the Mercurial mailing list