| Summary: | svn fetch uses last changed revision instead of revision on a svn branch. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] BitBake | Reporter: | Balagopal Ambalakkat <bambalakkat> | ||||
| Component: | bitbake | Assignee: | Richard Purdie <richard.purdie> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | Low | CC: | liezhi.yang, poky.bs.watcher, poky.watcher, sgw, wenlin.kang | ||||
| Version: | 1.5.1 | ||||||
| Target Milestone: | 4.99 | ||||||
| Hardware: | All | ||||||
| OS: | Multiple | ||||||
| Whiteboard: | |||||||
| OS type for building Yocto: | --- | Type of Regression: | --- | ||||
| Verified: | Documentation change: | Don't know | |||||
| Attachments: |
|
||||||
|
Description
Balagopal Ambalakkat
2014-05-01 02:01:15 UTC
Can you provide an external SVN server that exibits this behavior along with a recipe example that recplicates this issue. Assigned to person we are requesting info from per RP. Created attachment 2011 [details]
The patch fix Unable to fetch URL bug
Follow 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=tdir0/tdir1"
Last, run fetch for mytest.bb
I have made the patch, and add the steps and instructions to test, please see the mailing list: http://patches.openembedded.org/patch/73099/ or http://patchwork.openembedded.org/patch/73595/ It appears that the information requested has been supplied and this should no longer be in NEEDINFO. I have moved it to In Process Review. I did some research into this. The issue comes from the change: http://git.openembedded.org/bitbake/commit/lib/bb/fetch/svn.py?id=42e57e467b8334230436f24dc4bdfff64b52d2b3 I'm having a hard time figuring out what the correct thing to do here is though. I've ended up adding a nopegrevision parameter which can be used in urls to choose the correct behaviour as there is no one correct answer that will work in every case. |