diff -r 8e518e11f6cf -r 6513ba7d858a mercurial/commands.py --- a/mercurial/commands.py Sun Jul 10 16:14:41 2005 -0800 +++ b/mercurial/commands.py Sun Jul 10 16:14:56 2005 -0800 @@ -606,10 +606,10 @@ ui.debug(t,'\n') if t == '# HG changeset patch' or hgpatch == True: hgpatch = True - if t[:7] == "# User ": + if t.startswith("# User "): user = t[7:] ui.debug('User: %s\n' % user) - if t[:2] <> "# " and t.strip() and not snippet: snippet = t + if not t.startswith("# ") and t.strip() and not snippet: snippet = t if snippet: text = snippet + '\n' + text ui.debug('text:\n%s\n' % text) @@ -621,7 +621,7 @@ for l in f.read().splitlines(): l.rstrip('\r\n'); ui.status("%s\n" % l) - if l[:14] == 'patching file ': + if l.startswith('patching file '): pf = l[14:] if pf not in files: files.append(pf)