You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Volker Voßkämper <vo...@cenote.de> on 2003/06/17 20:24:36 UTC

How to get a batchcopy of files changed between two revisions (on windows)

I often need only the files that are changed between two revisions.

Example:

D:\Source\test>svn st -vu
               20       20       test   .
               20       17   vosskaem   File-A
               20       16   vosskaem   File-B
               20       10   vosskaem   File-C
               20       20       test   File-D
Head revision:     20


Now I want all files changed from revision 17 up to now (File-A, File-D).
(because rev 16 was the last update I send out)

I need a batch or ant job for Windows XP that make a copy of this files in
a temp directory including the original path.


Hope there's a smart solution out there ;-)


Thanx

    Volker



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: How to get a batchcopy of files changed between two revisions (on windows)

Posted by Ben Collins-Sussman <su...@collab.net>.
Volker Voßkämper <vo...@cenote.de> writes:

> On server (as root):  $ svnserver
> 
> On client (win32):
> C:\> svn ls svn://myhost/complete/path/of/repos
> svn: target refused connection (translated german message)
> svn: Can't connect to host 'myhost'

Read the section on 'svnserve' in the book again.  I just rewrote it
last week, and reposted it to svnbook.red-bean.com.

'svnserve', when run with no arguments, speaks protocol with
stdout/stdin.  It's useless to run it that way.  Perhaps you want it
to listen to the network instead?  Add a -d (daemon) flag.


> C:\> set SVN_SSH=plink -l root -pw mypasswd
> 
> C:\>Source>svn ls svn+ssh://myhost/complete/path/of/repos
> svn: Network connection closed unexpectedly
> svn: Connection closed unexpectedly

Can anyone else diagnose the problem?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org


Re: How to get a batchcopy of files changed between two revisions (on windows)

Posted by Volker Voßkämper <vo...@cenote.de>.
Volker Voßkämper schrieb:

> 1.)
> ---------------------------------------------------------------
> On server (as root):  $ svnserver
>
> On client (win32):
> C:\> svn ls svn://myhost/complete/path/of/repos
> svn: target refused connection (translated german message)
> svn: Can't connect to host 'myhost'

Ok, with the -d option it works.

But ssh won't !




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: How to get a batchcopy of files changed between two revisions (on windows)

Posted by Volker Voßkämper <vo...@cenote.de>.
Ben Collins-Sussman schrieb:

>>Is it possible to use both on the same repos?
>>    
>>
>
>Yes, read this part of chapter 5:
>
>   http://svnbook.red-bean.com/html-chunk/ch05s05.html
>
I, did. But...

1.)
---------------------------------------------------------------
On server (as root):  
$ svnserver

On client (win32):
C:\> svn ls svn://myhost/complete/path/of/repos
svn: target refused connection (translated german message)
svn: Can't connect to host 'myhost'

2.)
----------------------------------------------------------------
On server: nothing

On client (win32):
C:\> set SVN_SSH=plink -l root -pw mypasswd

C:\>Source>svn ls svn+ssh://myhost/complete/path/of/repos
svn: Network connection closed unexpectedly
svn: Connection closed unexpectedly

Just for testing:
C:\> start %SVN_SSH% myhost
this estabished an connection to the server whithout promptin for anything.

There is no firewall active on myhost.

Sorry for this never ending story.  This is, for shure, that I'm using 
Linux just for one year...

Many thanks for helping.

Volker



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: How to get a batchcopy of files changed between two revisions (on windows)

Posted by Ben Collins-Sussman <su...@collab.net>.
Volker Voßkämper <vo...@cenote.de> writes:

> Is it possible to use both on the same repos?

Yes, read this part of chapter 5:

   http://svnbook.red-bean.com/html-chunk/ch05s05.html


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org


Re: How to get a batchcopy of files changed between two revisions (on windows)

Posted by Volker Voßkämper <vo...@cenote.de>.
> 
>
>>I will... (I have no other chance :-)))
>>    
>>
>
>Or use svn:// and svnserve.  :-)
>

hmmm.... I need usernames - not for security now but for log 
transparenz. So I have to tunnel with ssh (Putty???)
I tried this once without success.

Is it possible to use both on the same repos?


Volker



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: How to get a batchcopy of files changed between two revisions (on windows)

Posted by Ben Collins-Sussman <su...@collab.net>.
Volker Voßkämper <vo...@cenote.de> writes:

> Ben Collins-Sussman schrieb:
> 
> >Yes, the problem is that apache isn't generating a streamy PROPFIND
> >response.  It's issue 773.  We're fixing apache, just wait a week or
> >two.
> >
> 
> I will... (I have no other chance :-)))

Or use svn:// and svnserve.  :-)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org


Re: How to get a batchcopy of files changed between two revisions (on windows)

Posted by Volker Voßkämper <vo...@cenote.de>.
Ben Collins-Sussman schrieb:

>Yes, the problem is that apache isn't generating a streamy PROPFIND
>response.  It's issue 773.  We're fixing apache, just wait a week or
>two.
>

I will... (I have no other chance :-)))




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: How to get a batchcopy of files changed between two revisions (on windows)

Posted by Ben Collins-Sussman <su...@collab.net>.
Volker Voßkämper <vo...@cenote.de> writes:

> hmmm...
> 
> look's like another part of my big-repository problem :-(
> 
> D:\Source\work>svn merge --dry-run -r45:head .
>    bin\xy.fmb
> svn: RA layer request failed
> svn: PROPFIND request failed on '/svn/work/!svn/bc/45/trunk/work/bin'
> svn: PROPFIND of '/svn/work/!svn/bc/45/trunk/work/bin': timed out
> waiting for server (http://s-dev)
> 
> Memory use on the server is ok at this time (<20Mb)
> 
> What about to change the timeout value on the client?

Yes, the problem is that apache isn't generating a streamy PROPFIND
response.  It's issue 773.  We're fixing apache, just wait a week or
two.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org


Re: How to get a batchcopy of files changed between two revisions (on windows)

Posted by Volker Voßkämper <vo...@cenote.de>.
hmmm...

look's like another part of my big-repository problem :-(

D:\Source\work>svn merge --dry-run -r45:head .
   bin\xy.fmb
svn: RA layer request failed
svn: PROPFIND request failed on '/svn/work/!svn/bc/45/trunk/work/bin'
svn: PROPFIND of '/svn/work/!svn/bc/45/trunk/work/bin': timed out 
waiting for server (http://s-dev)

Memory use on the server is ok at this time (<20Mb)

What about to change the timeout value on the client?

Volker



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: How to get a batchcopy of files changed between two revisions (on windows)

Posted by Ben Collins-Sussman <su...@collab.net>.
Volker Voßkämper <vo...@cenote.de> writes:

> Wow, that's a good startingpoint !!! Thank you.
> 
> But
>     svn log -v -r17:HEAD
> show a file that is changed in rev 17  too (File-D AND File-A)
> and
>    svn merge --dry-run -r17:HEAD
> only shows the file File-D
> 
> OK, I can use  (rev - 1) but maybe it's important to know.
> (I don't understand why merging from rev 17 don't include files that
> are changed in 17


'svn log -v -r X' will show a list of changes between X-1 and X.  It's
the "changeset" that was applied to create revision X.

But 'svn merge -r X:Y' means:

"Describe how to change tree X into tree Y".

So it won't show you the changes that happened between X-1 and X.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org


Re: How to get a batchcopy of files changed between two revisions (on windows)

Posted by Volker Voßkämper <vo...@cenote.de>.
Wow, that's a good startingpoint !!! Thank you.

But
    svn log -v -r17:HEAD
show a file that is changed in rev 17  too (File-D AND File-A)
and
   svn merge --dry-run -r17:HEAD
only shows the file File-D

OK, I can use  (rev - 1) but maybe it's important to know.
(I don't understand why merging from rev 17 don't include files that are 
changed in 17
 - but I never use merge on my binaries :-))


Volker



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: How to get a batchcopy of files changed between two revisions (on windows)

Posted by Ben Collins-Sussman <su...@collab.net>.
Volker Voßkämper <vo...@cenote.de> writes:

> Now I want all files changed from revision 17 up to now (File-A, File-D).
> (because rev 16 was the last update I send out)
> 
> I need a batch or ant job for Windows XP that make a copy of this files in
> a temp directory including the original path.

Try 'svn merge --dry-run -r17:HEAD'.  That will give you a list of
files that changed.

(So will looking at the output 'svn log -v -r17:HEAD')

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org