comparison hgext/show.py @ 33208:9e7efe421395

show: tweak warning message '.' is "working directory parent" not "working directory."
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 03 Jul 2017 21:10:48 -0700
parents c5a07a3abe7d
children 9718725dc02a
comparison
equal deleted inserted replaced
33207:895ecec31c70 33208:9e7efe421395
180 if wdirctx.rev() == nullrev: 180 if wdirctx.rev() == nullrev:
181 raise error.Abort(_('stack view only available when there is a ' 181 raise error.Abort(_('stack view only available when there is a '
182 'working directory')) 182 'working directory'))
183 183
184 if wdirctx.phase() == phases.public: 184 if wdirctx.phase() == phases.public:
185 ui.write(_('(empty stack; working directory is a published ' 185 ui.write(_('(empty stack; working directory parent is a published '
186 'changeset)\n')) 186 'changeset)\n'))
187 return 187 return
188 188
189 # TODO extract "find stack" into a function to facilitate 189 # TODO extract "find stack" into a function to facilitate
190 # customization and reuse. 190 # customization and reuse.