Skip to contentSkip to conversation

scmversion: 'Improve' svn interaction.

PATCH Applied Andrew Cooper 3 participants 4 messages Aug 2, 2013

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 scmversion: 'Improve' svn interaction.

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.

CC Marek Marczykowski <[email protected]>
CC Keir Fraser <[email protected]>
CC Jan Beulich <[email protected]>
CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>

---
Changes since v1:
* Completely discard svn support rather than fixing it, as suggested by IanC

---
 xen/tools/scmversion |   11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)
xen/tools/scmversion +1 -10
index b0c3b95..b6ce049 100755
@@ -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
Signature · 1 line
1.7.10.4
Acked-by on v2 1/1
#1 lore raw
Quoted 9 lines · Andrew Cooper

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.

CC Marek Marczykowski <[email protected]>
CC Keir Fraser <[email protected]>
CC Jan Beulich <[email protected]>
Quoted 38 lines
CC Ian Jackson <[email protected]>

---
Changes since v1:
* Completely discard svn support rather than fixing it, as suggested by IanC

---
 xen/tools/scmversion |   11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)
xen/tools/scmversion +1 -10
index b0c3b95..b6ce049 100755
@@ -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
Acked-by on v2 1/1
#2 lore raw
In reply to Andrew Cooper
Quoted 11 lines · Andrew Cooper

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.

CC Marek Marczykowski <[email protected]>
CC Keir Fraser <[email protected]>
CC Jan Beulich <[email protected]>
CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>
Quoted 37 lines

---
Changes since v1:
* Completely discard svn support rather than fixing it, as suggested by IanC

---
 xen/tools/scmversion |   11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)
xen/tools/scmversion +1 -1
index b0c3b95..b6ce049 100755
@@ -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

xen/tools/scmversion +0 -6
-  rev=`echo $rev | awk '{print $NF}'`
-  printf -- 'svn:%s' "$rev"
-
-  # All done with svn
-  return
- fi
 }
 
 cd $srctree
Applied
#3 lore raw
Quoted 7 lines · Keir Fraser
Quoted 5 lines · Andrew Cooper

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.

Quoted 8 lines
Quoted 6 lines
CC Marek Marczykowski <[email protected]>
CC Keir Fraser <[email protected]>
CC Jan Beulich <[email protected]>
CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>

Applied.