scmversion: 'Improve' svn interaction.
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.
---
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
@@ -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
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.
Signed-off-by Andrew Cooper <[email protected]>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@@ -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
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.
Signed-off-by Andrew Cooper <[email protected]>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@@ -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 mercurialreturn
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'; thenxen/tools/scmversion +0
-6- rev=`echo $rev | awk '{print $NF}'` - printf -- 'svn:%s' "$rev" - - # All done with svn - return - fi } cd $srctree
Ian Campbell
AppliedQuoted 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
Signed-off-by Andrew Cooper <[email protected]>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]>Acked-by Keir Fraser <[email protected]>
Applied.