Skip to content

Commit 39bce25

Browse files
committed
[util] Allow callsigns when running git llvm revert
llvm-svn: 368726
1 parent 97c35c9 commit 39bce25

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/utils/git-svn/git-llvm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -556,9 +556,9 @@ def cmd_revert(args):
556556
if len(open_files) > 0:
557557
die("Found open files. Please stash and then revert.\n" + open_files)
558558

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)
559+
# If the revision looks like rNNNNNN (or with a callsign, e.g. rLLDNNNNNN),
560+
# use that. Otherwise, look for it in the git commit.
561+
svn_match = re.match('^r[A-Z]*(\d{5,7})$', args.revision)
562562
if svn_match:
563563
# If the revision looks like rNNNNNN, use that as the svn revision, and
564564
# grep through git commits to find which one corresponds to that svn

0 commit comments

Comments
 (0)