1 |
neurogeek 11/12/27 22:40:50 |
2 |
|
3 |
Modified: ChangeLog subversion.eclass |
4 |
Log: |
5 |
Handle UUID mismatch by deleting working copy and checking out it again. Patch by Arfrever. |
6 |
|
7 |
Revision Changes Path |
8 |
1.60 eclass/ChangeLog |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.60&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.60&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.59&r2=1.60 |
13 |
|
14 |
Index: ChangeLog |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v |
17 |
retrieving revision 1.59 |
18 |
retrieving revision 1.60 |
19 |
diff -u -r1.59 -r1.60 |
20 |
--- ChangeLog 27 Dec 2011 17:55:12 -0000 1.59 |
21 |
+++ ChangeLog 27 Dec 2011 22:40:50 -0000 1.60 |
22 |
@@ -1,6 +1,10 @@ |
23 |
# ChangeLog for eclass directory |
24 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.59 2011/12/27 17:55:12 fauli Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.60 2011/12/27 22:40:50 neurogeek Exp $ |
27 |
+ |
28 |
+ 27 Dec 2011; Jesus Rivero <neurogeek@g.o> subversion.eclass: |
29 |
+ Handle UUID mismatch by deleting working copy and checking out it again. |
30 |
+ Patch by Arfrever. |
31 |
|
32 |
27 Dec 2011; Christian Faulhammer <fauli@g.o> rox-0install.eclass, |
33 |
apache-2.eclass, common-lisp-common-2.eclass, gnustep-2.eclass, |
34 |
|
35 |
|
36 |
|
37 |
1.72 eclass/subversion.eclass |
38 |
|
39 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/subversion.eclass?rev=1.72&view=markup |
40 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/subversion.eclass?rev=1.72&content-type=text/plain |
41 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/subversion.eclass?r1=1.71&r2=1.72 |
42 |
|
43 |
Index: subversion.eclass |
44 |
=================================================================== |
45 |
RCS file: /var/cvsroot/gentoo-x86/eclass/subversion.eclass,v |
46 |
retrieving revision 1.71 |
47 |
retrieving revision 1.72 |
48 |
diff -u -r1.71 -r1.72 |
49 |
--- subversion.eclass 14 Dec 2011 23:40:18 -0000 1.71 |
50 |
+++ subversion.eclass 27 Dec 2011 22:40:50 -0000 1.72 |
51 |
@@ -1,6 +1,6 @@ |
52 |
# Copyright 1999-2011 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/subversion.eclass,v 1.71 2011/12/14 23:40:18 vapier Exp $ |
55 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/subversion.eclass,v 1.72 2011/12/27 22:40:50 neurogeek Exp $ |
56 |
|
57 |
# @ECLASS: subversion.eclass |
58 |
# @MAINTAINER: |
59 |
@@ -283,7 +283,25 @@ |
60 |
fi |
61 |
|
62 |
if [[ -z ${esvn_up_freq} ]]; then |
63 |
- if [[ ${ESVN_WC_URL} != $(subversion__get_repository_uri "${repo_uri}") ]]; then |
64 |
+ if [[ ${ESVN_WC_UUID} != $(subversion__svn_info "${repo_uri}" "Repository UUID") ]]; then |
65 |
+ # UUID mismatch. Delete working copy and check out it again. |
66 |
+ einfo "subversion recheck out start -->" |
67 |
+ einfo " old UUID: ${ESVN_WC_UUID}" |
68 |
+ einfo " new UUID: $(subversion__svn_info "${repo_uri}" "Repository UUID")" |
69 |
+ einfo " repository: ${repo_uri}${revision:+@}${revision}" |
70 |
+ |
71 |
+ rm -fr "${ESVN_PROJECT}" || die |
72 |
+ |
73 |
+ debug-print "${FUNCNAME}: ${ESVN_FETCH_CMD} ${options} ${repo_uri}" |
74 |
+ |
75 |
+ mkdir -m 775 -p "${ESVN_PROJECT}" || die "${ESVN}: can't mkdir ${ESVN_PROJECT}." |
76 |
+ cd "${ESVN_PROJECT}" || die "${ESVN}: can't chdir to ${ESVN_PROJECT}" |
77 |
+ if [[ -n "${ESVN_USER}" ]]; then |
78 |
+ ${ESVN_FETCH_CMD} ${options} --username "${ESVN_USER}" --password "${ESVN_PASSWORD}" "${repo_uri}" || die "${ESVN}: can't fetch to ${wc_path} from ${repo_uri}." |
79 |
+ else |
80 |
+ ${ESVN_FETCH_CMD} ${options} "${repo_uri}" || die "${ESVN}: can't fetch to ${wc_path} from ${repo_uri}." |
81 |
+ fi |
82 |
+ elif [[ ${ESVN_WC_URL} != $(subversion__get_repository_uri "${repo_uri}") ]]; then |
83 |
einfo "subversion switch start -->" |
84 |
einfo " old repository: ${ESVN_WC_URL}@${ESVN_WC_REVISION}" |
85 |
einfo " new repository: ${repo_uri}${revision:+@}${revision}" |