NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Branch names (Score:1)
Can your plugin instead use "svn info" to pull the actual branch name? It could pull the URL from "svn info" and then assume that the next path segment after "/branches" (or
Re: (Score:1)
Turns out that's quite straightforward. Here's my version (below) modified to do that:
Re: (Score:1)
"svn-commit.2.tmp" 4L, 63C
Error detected while processing function AddBranchName:
line 3:
E486: Pattern not found: retired
Here's my full plugin source:
Re:Branch names (Score:1)
Ooops, my fault!
s//repeats the most recent match; I'm guessing you previously searched for “retired” and that you have something in your Vim config which remembers the search register across sessions.Make that
s/^/instead. Sorry about that.Note you don't need that function definition around it; what I posted was intended to be the complete plug-in. See below for the explanation.
Reply to This
Parent