Armin Rigo  committed e0e5d20

More robustly parse the stdout. Avoids being confused by warnings like "Not trusting file xyz".

  • Participants
  • Parent commits 7cdc6fe

Comments (0)

Files changed (1)

File bot2/pypybuildbot/

 class CheckGotRevision(ShellCmd):
     description = 'got_revision'
-    command = ['hg', 'parents', '--template', '{rev}:{node}']
+    command = ['hg', 'parents', '--template', 'got_revision:{rev}:{node}']
     def commandComplete(self, cmd):
         if cmd.rc == 0:
             got_revision = cmd.logs['stdio'].getText()
+            got_revision = got_revision.split('got_revision:')[-1]
             # manually get the effect of {node|short} without using a
             # '|' in the command-line, because it doesn't work on Windows
             num = got_revision.find(':')