[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn diff: properties?

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2001-09-07 00:26:57 CEST

Ben Collins-Sussman <sussman@collab.net> writes:

> We expected that someday (it's been a year!) people might use this
> format to post patches to mailing lists. :-)

Here's a demo. This functionality may not be entirely working, but it
worth cleaning up if broken. :-) The DTD for this patch format is
documented somewhere; it's similar to the examples in our ancient spec.

[sussman@kepler:~/projects/test/wc]$ svn st
_ 1 ( 1) .
_ 1 ( 1) ./A
_ 1 ( 1) ./A/B
_ 1 ( 1) ./A/B/E
_ 1 ( 1) ./A/B/E/alpha
_ 1 ( 1) ./A/B/E/beta
_ 1 ( 1) ./A/B/F
_ 1 ( 1) ./A/B/lambda
_ 1 ( 1) ./A/C
_ 1 ( 1) ./A/D
_ 1 ( 1) ./A/D/G
_ 1 ( 1) ./A/D/G/pi
_ 1 ( 1) ./A/D/G/rho
_ 1 ( 1) ./A/D/G/tau
_ 1 ( 1) ./A/D/H
_ 1 ( 1) ./A/D/H/chi
_ 1 ( 1) ./A/D/H/omega
_ 1 ( 1) ./A/D/H/psi
_ 1 ( 1) ./A/D/gamma
_ 1 ( 1) ./A/mu
_ 1 ( 1) ./iota
[sussman@kepler:~/projects/test/wc]$ echo "fooooo" >> iota
[sussman@kepler:~/projects/test/wc]$ svn propset foo bar A/B/lambda
property `foo' set on A/B/lambda.
[sussman@kepler:~/projects/test/wc]$ svn st -M
_M 1 ( 1) ./A/B/lambda
M 1 ( 1) ./iota
[sussman@kepler:~/projects/test/wc]$ svn ci --xml-file patch.xml -r 2
Sending /usr/home/sussman/projects/test/wc//A/B/lambda
Sending /usr/home/sussman/projects/test/wc//iota
Commit succeeded.
[sussman@kepler:~/projects/test/wc]$ more patch.xml
<?xml version="1.0" encoding="utf-8"?>
<delta-pkg
   base-rev="1">
<tree-delta>
<replace
   name="A">
<dir
   base-rev="1">
<tree-delta>
<replace
   name="B">
<dir
   base-rev="1">
<tree-delta>
<replace
   name="lambda">
<file
   base-rev="1">
<prop-delta>
<set
   name="foo">bar</set>
</prop-delta>
</file>
</replace>
</tree-delta>
</dir>
</replace>
</tree-delta>
</dir>
</replace>
<replace
   name="iota">
<file
   base-rev="1">
<text-delta-ref
   id="1"/>
</file>
</replace>
</tree-delta>
<text-delta
   id="1">U1ZOAAAYHwYDGACCRBmBZm8K
</text-delta>
</delta-pkg>

  [... go to another pristine working copy ... ]

[sussman@kepler:~/projects/test]$ cd wc2
[sussman@kepler:~/projects/test/wc2]$ svn st
_ 1 ( 1) .
_ 1 ( 1) ./A
_ 1 ( 1) ./A/B
_ 1 ( 1) ./A/B/E
_ 1 ( 1) ./A/B/E/alpha
_ 1 ( 1) ./A/B/E/beta
_ 1 ( 1) ./A/B/F
_ 1 ( 1) ./A/B/lambda
_ 1 ( 1) ./A/C
_ 1 ( 1) ./A/D
_ 1 ( 1) ./A/D/G
_ 1 ( 1) ./A/D/G/pi
_ 1 ( 1) ./A/D/G/rho
_ 1 ( 1) ./A/D/G/tau
_ 1 ( 1) ./A/D/H
_ 1 ( 1) ./A/D/H/chi
_ 1 ( 1) ./A/D/H/omega
_ 1 ( 1) ./A/D/H/psi
_ 1 ( 1) ./A/D/gamma
_ 1 ( 1) ./A/mu
_ 1 ( 1) ./iota
[sussman@kepler:~/projects/test/wc2]$ svn up --xml-file ../patch.xml -r 2
_U ./A/B/lambda
U ./iota
[sussman@kepler:~/projects/test/wc2]$ svn st
_ 2 ( 1) .
_ 2 ( 1) ./A
_ 2 ( 1) ./A/B
_ 2 ( 1) ./A/B/E
_ 2 ( 1) ./A/B/E/alpha
_ 2 ( 1) ./A/B/E/beta
_ 2 ( 1) ./A/B/F
__ 2 ( 1) ./A/B/lambda
_ 2 ( 1) ./A/C
_ 2 ( 1) ./A/D
_ 2 ( 1) ./A/D/G
_ 2 ( 1) ./A/D/G/pi
_ 2 ( 1) ./A/D/G/rho
_ 2 ( 1) ./A/D/G/tau
_ 2 ( 1) ./A/D/H
_ 2 ( 1) ./A/D/H/chi
_ 2 ( 1) ./A/D/H/omega
_ 2 ( 1) ./A/D/H/psi
_ 2 ( 1) ./A/D/gamma
_ 2 ( 1) ./A/mu
_ 2 ( 1) ./iota

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:40 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.