mercurial/ui.py
changeset 31541 d0f95ecca2ad
parent 31538 713e984bec91
child 31593 37a0ad669051
equal deleted inserted replaced
31540:2abba5068aa1 31541:d0f95ecca2ad
  1233 
  1233 
  1234         if command fails and onerr is None, return status, else raise onerr
  1234         if command fails and onerr is None, return status, else raise onerr
  1235         object as exception.
  1235         object as exception.
  1236         '''
  1236         '''
  1237         if blockedtag is None:
  1237         if blockedtag is None:
  1238             blockedtag = 'unknown_system_' + cmd.translate(None, _keepalnum)
  1238             # Long cmds tend to be because of an absolute path on cmd. Keep
       
  1239             # the tail end instead
       
  1240             cmdsuffix = cmd.translate(None, _keepalnum)[-85:]
       
  1241             blockedtag = 'unknown_system_' + cmdsuffix
  1239         out = self.fout
  1242         out = self.fout
  1240         if any(s[1] for s in self._bufferstates):
  1243         if any(s[1] for s in self._bufferstates):
  1241             out = self
  1244             out = self
  1242         with self.timeblockedsection(blockedtag):
  1245         with self.timeblockedsection(blockedtag):
  1243             rc = self._runsystem(cmd, environ=environ, cwd=cwd, out=out)
  1246             rc = self._runsystem(cmd, environ=environ, cwd=cwd, out=out)