mercurial/ui.py
changeset 31535 d0f95ecca2ad
parent 31532 713e984bec91
child 31588 37a0ad669051
--- a/mercurial/ui.py	Sun Mar 19 01:20:08 2017 -0400
+++ b/mercurial/ui.py	Mon Mar 20 05:08:21 2017 -0700
@@ -1235,7 +1235,10 @@
         object as exception.
         '''
         if blockedtag is None:
-            blockedtag = 'unknown_system_' + cmd.translate(None, _keepalnum)
+            # Long cmds tend to be because of an absolute path on cmd. Keep
+            # the tail end instead
+            cmdsuffix = cmd.translate(None, _keepalnum)[-85:]
+            blockedtag = 'unknown_system_' + cmdsuffix
         out = self.fout
         if any(s[1] for s in self._bufferstates):
             out = self