Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

status: fix toggle of dirty subrepos

Changeset 3924b085e482

Parent 9cb6ba747ab5

by Steve Borho

Changes to one file · Browse files at 3924b085e482 Showing diff from parent 9cb6ba747ab5 Diff from another changeset...

 
379
380
381
382
383
384
385
386
387
 
 
 
 
 
 
 
388
389
390
 
379
380
381
 
 
 
 
 
 
382
383
384
385
386
387
388
389
390
391
@@ -379,12 +379,13 @@
  if opts['clean']:   for c in wctx.clean():   rows.append([False, 'C', '', hglib.tounicode(c), c]) - try: - for s in wctx.substate: - if wctx.sub(s).dirty(): - rows.append([False, 'S', '', hglib.tounicode(s), s]) - except (OSError, IOError, error.ConfigError), e: - self.status_error = str(e) + if opts['subrepo']: + try: + for s in wctx.substate: + if wctx.sub(s).dirty(): + rows.append([False, 'S', '', hglib.tounicode(s), s]) + except (OSError, IOError, error.ConfigError), e: + self.status_error = str(e)   self.headers = ('*', _('Stat'), _('M'), _('Filename'))   self.rows = rows