scmversion: 'Improve' svn interaction.
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 2 Aug 2013 15:52:55 +0000 (16:52 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 2 Aug 2013 16:09:26 +0000 (17:09 +0100)
Xen has never been in an svn tree, and the current code will unconditionally
create a .svn directory when run from a tarball.

Therefore, simply discard the svn support.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/tools/scmversion

index b0c3b952f61dddf034ac0b0fd0a7662f638bf015..b6ce0498d5a71acdc8b682869f4e353c0316ed3d 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 #
 # This scripts adds local version information from the version
-# control systems git, mercurial (hg) and subversion (svn).
+# control systems git and mercurial (hg).
 #
 # If something goes wrong, send a mail the kernel build mailinglist
 # (see MAINTAINERS) and CC Nico Schottelius
@@ -75,15 +75,6 @@ scm_version()
                # All done with mercurial
                return
        fi
-
-       # Check for svn and a svn repo.
-       if rev=`LANG= LC_ALL= LC_MESSAGES=C svn info 2>/dev/null | grep '^Last Changed Rev'`; then
-               rev=`echo $rev | awk '{print $NF}'`
-               printf -- 'svn:%s' "$rev"
-
-               # All done with svn
-               return
-       fi
 }
 
 cd $srctree