fetch2/svn.py: fix Unable to fetch URL bug
PATCH 1/1 fetch2/svn.py: fix Unable to fetch URL bug
The testing steps and instructions:
First, we need to create a svn server on the server side, eg, my is svnroot $svnadmin create ~/workspace/svnroot
Second, on the client side:
$mkdir -p ~/workspace/svntest
$cd ~/workspace/svntest
$mkdir -p test/{trunk,branches,tag}
$mkdir -p test/trunk/tdir0/tdir1/tdir2
$touch test/trunk/hello.c
$touch test/trunk/tdir0/tdir1/tdir2/test2.c
$touch test/trunk/tdir0/tdir1/test1.c
$touch test/trunk/tdir0/test0.c
$svn import -m "create the project test" test/ svn://xxx.xxx.xxx.xxx/svnroot/test
Then, make some commit,...
Such, we now get "r15"
$svn cp -m "create a branch test_debug-1.0" svn://xxx.xxx.xxx.xxx/svnroot/test/trunk svn://xxx.xxx.xxx.xxx/svnroot/test/branches/test_debug-1.0
Now, we need to create a bb file(eg,mytest.bb) to download "tdir1" with the verion < test_debug-1.0 created time version, eg, download r12, then in bb file has:
SRCREV = "12"SRC_URI = "svn://xxx.xxx.xxx.xxx/svnroot/test/branches/test_debug-1.0;module=test0/tdir1"
Last, run fetch for mytest.bb
Wenlin Kang (1):
fetch2/svn.py: fix Unable to fetch URL bug
lib/bb/fetch2/svn.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Signature · 1 line
1.7.9.5
PATCH 1/1 fetch2/svn.py: fix Unable to fetch URL bug
For svn source, when download a revsion on branches, if the download revsion < the branch created time revsion, then it will fail.
The detail description reference the Yocto Project bugzilla, please see:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=6258
--- lib/bb/fetch2/svn.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
lib/bb/fetch2/svn.py +2 -1
@@ -98,7 +98,8 @@ class Svn(FetchMethod): suffix = "" if ud.revision: options.append("-r %s" % ud.revision) - suffix = "@%s" % (ud.revision) + #follow this line can make the fetch fail when download a revsion on branches if the download revsion < the branch created time revsion. + #suffix = "@%s" % (ud.revision) if command == "fetch": svncmd = "%s co %s %s://%s/%s%s %s" % (ud.basecmd, " ".join(options), proto, svnroot, ud.module, suffix, ud.module)
Signature · 1 line
1.7.9.5
Quoted 20 lines · Wenlin Kang
The testing steps and instructions:
First, we need to create a svn server on the server side, eg, my is svnroot $svnadmin create ~/workspace/svnroot
Second, on the client side:
$mkdir -p ~/workspace/svntest
$cd ~/workspace/svntest
$mkdir -p test/{trunk,branches,tag}
$mkdir -p test/trunk/tdir0/tdir1/tdir2
$touchtest/trunk/hello.c
$touchtest/trunk/tdir0/tdir1/tdir2/test2.c
$touchtest/trunk/tdir0/tdir1/test1.c
$touchtest/trunk/tdir0/test0.c$svn import -m "create the project test" test/ svn://xxx.xxx.xxx.xxx/svnroot/test
Then, make some commit,...
Such, we now get "r15"
Quoted 7 lines
$svn cp -m "create a branch test_debug-1.0" svn://xxx.xxx.xxx.xxx/svnroot/test/trunk svn://xxx.xxx.xxx.xxx/svnroot/test/branches/test_debug-1.0
Now, we need to create a bb
file(eg,mytest.bb)to download "tdir1" with the verion < test_debug-1.0 created time version, eg, download r12, then in bb file has:SRCREV = "12"
SRC_URI= "svn://xxx.xxx.xxx.xxx/svnroot/test/branches/test_debug-1.0;module=test0/tdir1"
Replace "module=test0/tdir1" with "module=tdir0/tdir1"
//Wenlin
Quoted 8 lines
Last, run fetch for mytest.bb
Wenlin Kang (1):
fetch2/svn.py: fix Unable to fetch URL buglib/bb/fetch2/svn.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Signature · 2 lines
Thanks, Wenlin Kang
Quoted 26 lines · Wenlin Kang
Quoted 25 lines · Wenlin Kang
The testing steps and instructions:
First, we need to create a svn server on the server side, eg, my is svnroot $svnadmin create ~/workspace/svnroot
Second, on the client side:
$mkdir -p ~/workspace/svntest
$cd ~/workspace/svntest
$mkdir -p test/{trunk,branches,tag}
$mkdir -p test/trunk/tdir0/tdir1/tdir2
$touchtest/trunk/hello.c
$touchtest/trunk/tdir0/tdir1/tdir2/test2.c
$touchtest/trunk/tdir0/tdir1/test1.c
$touchtest/trunk/tdir0/test0.c$svn import -m "create the project test" test/ svn://xxx.xxx.xxx.xxx/svnroot/test
Then, make some commit,...
Such, we now get "r15"$svn cp -m "create a branch test_debug-1.0" svn://xxx.xxx.xxx.xxx/svnroot/test/trunk svn://xxx.xxx.xxx.xxx/svnroot/test/branches/test_debug-1.0
Now, we need to create a bb
file(eg,mytest.bb)to download "tdir1" with the verion < test_debug-1.0 created time version, eg, download r12, then in bb file has:
Quoted 17 lines
Quoted 2 lines
SRCREV = "12"
SRC_URI= "svn://xxx.xxx.xxx.xxx/svnroot/test/branches/test_debug-1.0;module=test0/tdir1"Replace "module=test0/tdir1" with "module=tdir0/tdir1"
//Wenlin
Quoted 8 lines
Last, run fetch for mytest.bb
Wenlin Kang (1):
fetch2/svn.py: fix Unable to fetch URL buglib/bb/fetch2/svn.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
ping
// Wenlin
Signature · 2 lines
Thanks, Wenlin Kang