D1694: debugcommands: replace opts.get('foo') by opts['foo']

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Wed Jan 10 22:40:23 UTC 2018


durin42 added a comment.


  In https://phab.mercurial-scm.org/D1694#29072, @yuja wrote:
  
  > Queued the first three patches, but I'm not certain about this. Sometimes we
  >  do the reverse change for ease of calling command function as a plain function.
  
  
  I think it's probably okay for debug commands, those are pretty rare to use as a function aren't they?

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D1694

To: martinvonz, #hg-reviewers
Cc: durin42, yuja, mercurial-devel


More information about the Mercurial-devel mailing list