[PATCH] D59837: Add "git llvm revert" subcommand
James Y Knight via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 28 14:02:31 PDT 2019
jyknight added inline comments.
================
Comment at: llvm/trunk/utils/git-svn/git-llvm:414
+ die("Can't find git commit " + git_commit_hash)
+ svn_match = re.search('llvm-svn: (\d{5,7})$', commit_msg)
+ if svn_match:
----------------
This should search for "^llvm-svn: ...", in re.MULTILINE mode, so it's not confused by "fake" revisions.
See for example, 13c4bc567150f98adb0209aab16cc6d9ba369c7f. The first "> llvm-svn: 355168" came from the user's description committed to svn, since they copied it from the previous attempt. Thus it had a "> " inserted before it by the conversion script.
================
Comment at: llvm/trunk/utils/git-svn/git-llvm:462
+ oneline = git('log', '--all', '-1', '--format=%H %s', '--grep',
+ 'llvm-svn: ' + svn_rev)
+ if len(oneline) == 0:
----------------
Same here, should be '^llvm-svn: ' +
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D59837/new/
https://reviews.llvm.org/D59837
More information about the llvm-commits
mailing list