Re: How to checkout only the changes

2017-03-29 Thread horst . schlonz

On 03/27/2017 10:08 AM, Andrew Reedick wrote:

From: horst.schl...@gmx.de [mailto:horst.schl...@gmx.de]
Sent: Friday, March 24, 2017 4:04 PM
To: users@subversion.apache.org
Subject: How to checkout only the changes


Is there a way to export only the changes, that occured in a specific revision? 
Like export or checkout only the added or modified files in their respective 
paths? Deletions and cheap copies cannot be treated that way, obviously. Please 
CC as I am not subscribed.


FYI, 'svn copy' counts as an Add.  That may or may not be a concern?

Mostly Untested But Seems to Work in the Average Case(tm), so user beware:

#!/bin/bash

# usage:  foo.sh 1234   http://svn_server/repo_name
REV=$1
SVNREPO=$2

svn log -qv -r $REV $SVNREPO

# Yes we're grepping on XML because :laziness:
# And we're using perl because I can't be bothered with sed/awk subtleties
svn log -qv --xml -r $REV "$SVNREPO" | perl -ne 'chomp; $a=1 if /^   action="[AD]"/; print "$1\n" if ( $a 
&& /^   kind="file">(.*)<\/path>/ ); $a=0 if /<\/path>/;' | while read i
do
D=./`dirname "$i"`
mkdir -p "$D"
svn export --force "$SVNREPO/$i@$REV" "$D/"
done



The script just drops to the shell with exit code 0. My perl knowledge 
is very limited, but to debug I executed this


$ echo "action=\"A\">/trunk/text.txt" | perl -ne 'chomp; $a=1 if 
/^ action="[AD]"/; print "$1\n" if ( $a && /^ kind="file">(.*)<\/path>/ 
); $a=0 if /<\/path>/;'


I assume that is supposed to do something but for me it just drops to 
the shell with exit code 0.




Subversion 1.9.5 (64bit) crashes

2017-03-29 Thread master

Hi,

I compiled Subversion 1.9.5 (64bit) with VS 2015 Community, the 'svn'
executable seems to work, but just crashes at exit, the crash report
is in the attachment.

Here's version information in the building:

APR .. : 1.5.2
APR-iconv  : 1.2.1
APR-util . : 1.5.4
Berkeley DB .. : 4.7.25
Cyrus SASL ... : 2.1.25
gettext .. : 0.14.4-bin
httpd  : 2.4.25
libserf .. : 1.3.9
OpenSSL .. : 1.0.2k
sqlite ... : 3.17.0
zlib . : 1.2.11

Best Regards,

svn-crash-log20170330105723.dmp
Description: Binary data

Process info:
Cmd line: svn
Working Dir: C:\build\subversion-1.9.5\Release\1.9.5\bin
Version:  1.9.5 (r1770682), compiled Mar 30 2017, 10:55:58
Platform: Windows OS version 6.1 build 7601 Service Pack 1

Exception: ACCESS_VIOLATION

Registers:
Rax=002bf268 Rcx= Rdx= 
Rbx=
Rsp=002bf1f0 Rbp=00109318 Rsi=00109300 
Rdi=00117fe0
R8= 0010e560 R9= 676f727e00da001e R10=0022 
R11=002bf4c8
R12=002bf4e8 R13=00109300 R14= 
R15=0040
cs=0033  ss=002b  ds=002b  es=002b  fs=0053  gs=002b

Stacktrace:
#1  0x76fb31d0 in RtlFreeHeap()
#2  0x76d6300a in HeapFree()
#3  0x7fee988ff8c in _free_base(block=0x00109310) at 
d:\th\minkernel\crts\ucrt\src\appcrt\heap\free_base.cpp:107
block = 0x00109310
#4  0x7fee98541f8 in client_done() at 
c:\build\cyrus-sasl-2.1.25\lib\client.c:132
#5  0x7fee985762a in sasl_done() at c:\build\cyrus-sasl-2.1.25\lib\common.c:705
#6  0x7fee9a512f5 in sasl_done_cb(data=0x00109310) at 
c:\build\subversion-1.9.5\subversion\libsvn_ra_svn\cyrus_auth.c:72
data = 0x00109310
#7  0x73d3b59e in apr_pool_destroy(pool=(apr_pool_t *) 0x00109310) at 
c:\build\httpd-2.4.25\srclib\apr\memory\unix\apr_pools.c:814
pool = (apr_pool_t *) 0x00109310
#8  0x73d3b57f in apr_pool_destroy(pool=(apr_pool_t *) 0x) at 
c:\build\httpd-2.4.25\srclib\apr\memory\unix\apr_pools.c:811
pool = (apr_pool_t *) 0x
#9  0x73d3b885 in apr_pool_terminate() at 
c:\build\httpd-2.4.25\srclib\apr\memory\unix\apr_pools.c:640
#10  0x73d3dde2 in apr_terminate2() at 
c:\build\httpd-2.4.25\srclib\apr\misc\win32\start.c:226
#11  0x7fee9ca45e7 in iswctype()
#12  0x7fee9ca9697 in register_onexit_function()
#13  0x7fee9cac641 in execute_onexit_table()
#14  0x7fee8ec14ba in dllmain_crt_process_detach(is_terminating=0x00) at 
f:\dd\vctools\crt\vcstartup\src\startup\dll_dllmain.cpp:109
is_terminating = 0x00
is_nested = 0x4c
#15  0x7fee8ec15b0 in dllmain_dispatch(instance=(HINSTANCE__ *) 
0x, reason=0x, reserved=0x) at 
f:\dd\vctools\crt\vcstartup\src\startup\dll_dllmain.cpp:207
instance = (HINSTANCE__ *) 0x
reason = 0x
reserved = 0x
result = 0
#16  0x76f843a1 in LdrShutdownProcess()
#17  0x76f841b0 in RtlExitUserProcess()
#18  0x7fee9d080a6 in wassert()
#19  0x7fee9d07ffe in wassert()
#20  0x13f8b13f7 in __scrt_common_main_seh() at 
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:262
has_cctor = 0x00
#21  0x76d5652d in BaseThreadInitThunk()
#22  0x76f8c541 in RtlUserThreadStart()


Loaded modules:
0x00013f8b  C:\build\subversion-1.9.5\Release\1.9.5\bin\svn.exe 
(1.9.5.1210, 311296 bytes)
0x76f6  C:\Windows\System32\ntdll.dll (6.1.7601.18247, 1740800 
bytes)
0x76d4  C:\Windows\System32\kernel32.dll (6.1.7601.18015, 1175552 
bytes)
0x07fefd21  C:\Windows\System32\KERNELBASE.dll (6.1.7601.18015, 438272 
bytes)
0x73d3  C:\build\subversion-1.9.5\Release\1.9.5\bin\libapr-1.dll 
(1.5.2.0, 212992 bytes)
0x07fefeb9  C:\Windows\System32\advapi32.dll (6.1.7601.18247, 897024 
bytes)
0x07fefe88  C:\Windows\System32\msvcrt.dll (7.0.7600.16385, 651264 
bytes)
0x07fefd91  C:\Windows\System32\sechost.dll (6.1.7600.16385, 126976 
bytes)
0x07fefe93  C:\Windows\System32\rpcrt4.dll (6.1.7601.17514, 1232896 
bytes)
0x07fefefa  C:\Windows\System32\ws2_32.dll (6.1.7601.17514, 315392 
bytes)
0x07fefe92  C:\Windows\System32\nsi.dll (6.1.7600.16385, 32768 bytes)
0x07fefc6e  C:\Windows\System32\mswsock.dll (6.1.7601.17514, 348160 
bytes)
0x76e6  C:\Windows\System32\user32.dll (6.1.7601.17514, 1024000 
bytes)
0x07fefef3  C:\Windows\System32\gdi32.dll (6.1.7601.17514, 421888 bytes)
0x07fefe87  C:\Windows\System32\lpk.dll (6.1.7600.16385, 57344 bytes)
0x07feff17  C:\Windows\System32\usp10.dll (1.626.7601.17514, 823296 
bytes)
0x07fefd93  C:\Windows\System32\shell32.dll (6.1.7601.17678, 14188544 
bytes)
0x07fefd89  C:\Windows\System32\shlwapi.dll (6.1.7601.17514, 462848 
bytes)
0x07fef4a0  C:\Windows\System32\VCRUNTIME140.dll (14.0.24215.1, 94208 
bytes)
0x07f