<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 2014年06月11日 16:18, Wenlin Kang
      wrote:<br>
    </div>
    <blockquote cite="mid:539810F0.3090001@windriver.com" type="cite">On
      2014年06月03日 15:13, Wenlin Kang wrote:
      <br>
      <blockquote type="cite">On 2014年06月03日 11:30, Saul Wold wrote:
        <br>
        <blockquote type="cite">On 06/02/2014 06:55 PM, Wenlin Kang
          wrote:
          <br>
          <blockquote type="cite">For svn source, when download a
            revsion on branches, if the download
            <br>
            revsion &lt; the branch created time revsion, then it will
            fail.
            <br>
            <br>
          </blockquote>
          <br>
          <blockquote type="cite">The detail description reference the
            Yocto Project bugzilla, please see:
            <br>
            <a class="moz-txt-link-freetext" href="https://bugzilla.yoctoproject.org/show_bug.cgi?id=6258">https://bugzilla.yoctoproject.org/show_bug.cgi?id=6258</a>
            <br>
            <br>
            Signed-off-by: Wenlin Kang <a class="moz-txt-link-rfc2396E" href="mailto:wenlin.kang@windriver.com">&lt;wenlin.kang@windriver.com&gt;</a>
            <br>
            ---
            <br>
            lib/bb/fetch2/svn.py | 3 ++-
            <br>
            1 file changed, 2 insertions(+), 1 deletion(-)
            <br>
            <br>
            diff --git a/lib/bb/fetch2/svn.py b/lib/bb/fetch2/svn.py
            <br>
            index 8847461..75e21df 100644
            <br>
            --- a/lib/bb/fetch2/svn.py
            <br>
            +++ b/lib/bb/fetch2/svn.py
            <br>
            @@ -98,7 +98,8 @@ class Svn(FetchMethod):
            <br>
            suffix = ""
            <br>
            if ud.revision:
            <br>
            options.append("-r %s" % ud.revision)
            <br>
            - suffix = "@%s" % (ud.revision)
            <br>
            + #follow this line can make the fetch fail when download a
            revsion on branches if the download revsion &lt; the branch
            created time revsion.
            <br>
            + #suffix = "@%s" % (ud.revision)
            <br>
            <br>
          </blockquote>
          Will this cause other failures if there versions requests at a
          specific revision? can you detail how you tested this?
          <br>
        </blockquote>
        For a specific revsion download, I also do test, but I don't see
        failure now.
        <br>
        My test follow, you can reference it.
        <br>
        <br>
        First, you need to create a svn server, eg, my is svnroot
        <br>
        $svnadmin create ~/workspace/svnroot
        <br>
        <br>
        Second, on the client side do:
        <br>
        $mkdir -p ~/workspace/svntest
        <br>
        $cd ~/workspace/svntest
        <br>
        $mkdir -p test/{trunk,branches,tag}
        <br>
        $mkdir -p test/trunk/tdir0/tdir1/tdir2
        <br>
        $touch test/trunk/{hello.c}
        <br>
        $touch test/trunk/tdir0/tdir1/tdir2/test2.c
        <br>
        $touch test/trunk/tdir0/tdir1/test1.c
        <br>
        $touch test/trunk/tdir0/test0.c
        <br>
        <br>
        $svn import -m "create the project test" test/
        svn://xxx.xxx.xxx.xxx/svnroot/test
        <br>
        <br>
        Then, do some commit,...
        <br>
        Such, we now get "r15"
        <br>
        <br>
        $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
        <br>
        <br>
        Now, we create a bb file(eg, mytest.bb) to down "tdir1" with the
        verion &lt; test_debug-1.0 created time version, eg, download
        r12
        <br>
        in bb file has:
        <br>
        SRCREV = "12"
        <br>
        SRC_URI =
"svn://xxx.xxx.xxx.xxx/svnroot/test/branches/test_debug-1.0;module=test0/tdir1"<br>
      </blockquote>
      <br>
         Replace "module=test0/tdir1"  with "module=tdir0/tdir1"
      <br>
      <br>
          //Wenlin
      <br>
      <br>
      <blockquote type="cite">
        <br>
        Last, run fetch for mytest.bb
        <br>
        <blockquote type="cite">
          <br>
          <br>
        </blockquote>
      </blockquote>
    </blockquote>
    <br>
    Hi, Saul
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <br>
    <br>
    What can tell me about this? I wan to know the upstream status for
    the patch and test step, thanks.<br>
    <br>
    // Wenlin<br>
    <br>
    <blockquote cite="mid:539810F0.3090001@windriver.com" type="cite">
      <blockquote type="cite">
        <blockquote type="cite">
          <blockquote type="cite">if command == "fetch":
            <br>
            svncmd = "%s co %s %s://%s/%s%s %s" % (ud.basecmd, "
            ".join(options), proto, svnroot, ud.module, suffix,
            ud.module)
            <br>
            <br>
          </blockquote>
          <br>
          <br>
        </blockquote>
        <br>
        <br>
      </blockquote>
      <br>
      <br>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Thanks,
Wenlin Kang</pre>
  </body>
</html>