We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97c35c9 commit 39bce25Copy full SHA for 39bce25
llvm/utils/git-svn/git-llvm
@@ -556,9 +556,9 @@ def cmd_revert(args):
556
if len(open_files) > 0:
557
die("Found open files. Please stash and then revert.\n" + open_files)
558
559
- # If the revision looks like rNNNNNN, use that. Otherwise, look for it in
560
- # the git commit.
561
- svn_match = re.match('^r(\d{5,7})$', args.revision)
+ # If the revision looks like rNNNNNN (or with a callsign, e.g. rLLDNNNNNN),
+ # use that. Otherwise, look for it in the git commit.
+ svn_match = re.match('^r[A-Z]*(\d{5,7})$', args.revision)
562
if svn_match:
563
# If the revision looks like rNNNNNN, use that as the svn revision, and
564
# grep through git commits to find which one corresponds to that svn
0 commit comments