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

status: report subrepo revision changes

As often as not, this will be the only reason it is reported
as dirty.

Changeset f83c0c617a6e

Parent f47d747b8c4d

by Steve Borho

Changes to one file · Browse files at f83c0c617a6e Showing diff from parent f47d747b8c4d Diff from another changeset...

 
8
9
10
11
 
12
13
14
 
312
313
314
 
 
315
316
 
 
 
 
317
318
319
 
8
9
10
 
11
12
13
14
 
312
313
314
315
316
317
318
319
320
321
322
323
324
325
@@ -8,7 +8,7 @@
 import os    from mercurial import ui, hg, util, patch, cmdutil, error, mdiff -from mercurial import context, merge, commands +from mercurial import context, merge, commands, subrepo  from tortoisehg.hgqt import qtlib, htmlui, chunkselect, wctxactions, visdiff  from tortoisehg.util import paths, hglib  from tortoisehg.hgqt.i18n import _ @@ -312,8 +312,14 @@
  try:   sroot = self.repo.wjoin(path)   srepo = hg.repository(hu, path=sroot) + srev = self.wctx.substate.get(path, subrepo.nullstate)[1] + sactual = srepo['.'].hex()   commands.status(hu, srepo)   diff = hu.getdata()[0] + if srev != sactual: + diff += '<br>' + diff += _('revision changed from %s to %s') % ( + srev[:12], sactual[:12])   except error.RepoError:   diff = _('<b>Not an hg subrepo, not previewable</b>')   else: