Hi,

hm, with depth=empty you're telling svn to only consider the root
folder itself.
In that case the entry tag would be empty ( and therefore perhaps
omitted) in case there are no changes/updates regarding the folder.

Lorenz
-- 

Jian Wang wrote:

>Hi~
>I'm coding to use svn in my Unity project, and want find a way to get file
>status
>I've tried `svn status` command, in most cases it works well,
>however when  -u and --depth=empty are both enabled, the entry block is
>missing.
>The following is my test:
>
>Step 1
>svn status --depth=empty "H:/svn/UnityTest/Assets/ddd.meta
>got
>
><?xml version="1.0" encoding="UTF-8"?>
><status>
><target
>  path="H:\svn\UnityTest\Assets\ddd.meta">
><entry
>  path="H:\svn\UnityTest\Assets\ddd.meta">
><wc-status
>  props="none"
>  item="unversioned">
></wc-status>
></entry>
></target>
></status>
>
>Step 2
>And I add -u
>svn status --depth=empty -u "H:/svn/UnityTest/Assets/ddd.meta
>the output is
>
><?xml version="1.0" encoding="UTF-8"?>
><status>
><target
>   path="H:\svn\UnityTest\Assets\ddd.meta">
><against
>   revision="27"/>
></target>
></status>
>
>The entry part disappear
>
>Step 3
>Try remove arg --depth=empty
>
>svn status -u "H:/svn/UnityTest/Assets/ddd.meta
>The output is
>
><?xml version="1.0" encoding="UTF-8"?>
><status>
><target
>  path="H:\svn\UnityTest\Assets\ddd.meta">
><entry
>  path="H:\svn\UnityTest\Assets\ddd.meta">
><wc-status
>  props="none"
>  item="unversioned">
></wc-status>
></entry>
><against
>  revision="27"/>
></target>
></status>
>
>The entry part came back.
>
>After trying --depth=files and --depth=immediates, they all return xml
>contains the entry part.
>
>So why when  -u and --depth=empty are both enabled, the entry block is
>missing?  How can I tell if the target is unversioned in this case?

Reply via email to