chiark / gitweb /
svnpath: Allow substitution of 'upstream'.
authorColin Watson <cjwatson@chiark.greenend.org.uk>
Sun, 18 Apr 2004 15:47:35 +0000 (15:47 +0000)
committerColin Watson <cjwatson@chiark.greenend.org.uk>
Sun, 18 Apr 2004 15:47:35 +0000 (15:47 +0000)
svnpath

diff --git a/svnpath b/svnpath
index d6a7fc4..5eda458 100755 (executable)
--- a/svnpath
+++ b/svnpath
@@ -13,6 +13,6 @@ if (! length $url) {
 
 if (length $wanted) {
        # Now jut substitute into it.
-       $url=~s!/(?:trunk|branches|tags)($|/)!/$wanted$1!;
+       $url=~s!/(?:trunk|branches|tags|upstream)($|/)!/$wanted$1!;
 }
 print $url;