AW: How to set the *same* ignore properties in many directories?

2012-04-10 Thread Markus Schaber
Hi,

Von: Ryan Schmidt [mailto:subversion-20...@ryandesign.com]
> On Apr 6, 2012, at 08:17, frame wrote:
> 
> > I want to add svn:ignore properties which ignores directory "abc_dir". I
> know how to do it. My difficulty here is that our file structures is like
> the following:
> >
> > a/b/abc_dir/1.txt
> > z/x/abc_dir/..
> > m/n/abc_dir/..
> > ...
> > z100/x100/abc_dir/..
> >
> > There are about 100 of them. I cannot do it one by one. Is there a
> better way to do it?
> >
> > I know I can do it in .subversion/config global-ignore properties. But
> that only affects my local area. It is better for every one in our team to
> have it.
> 
> Write a script to set the property on each directory.

Using svnmucc (or the language bindings for your preferred scripting language), 
you might even write the script to work without a local checkout of the whole 
structure, and using a single transaction. 


Best regards

Markus Schaber
-- 
___
We software Automation.

3S-Smart Software Solutions GmbH
Markus Schaber | Developer
Memminger Str. 151 | 87439 Kempten | Germany | Tel. +49-831-54031-0 | Fax 
+49-831-54031-50

Email: m.scha...@3s-software.com | Web: http://www.3s-software.com 
CoDeSys internet forum: http://forum.3s-software.com
Download CoDeSys sample projects: 
http://www.3s-software.com/index.shtml?sample_projects

Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade 
register: Kempten HRB 6186 | Tax ID No.: DE 167014915 


Bug while updating external sources

2012-04-10 Thread Esvar, Jayaraj
Hi,


---
Subversion Exception!
---
Subversion encountered a serious problem.
Please take the time to report this on the Subversion mailing list
with as much information as possible about what
you were trying to do.
But please first search the mailing list archives for the error message
to avoid reporting the same problem repeatedly.
You can find the mailing list archives at
http://subversion.apache.org/mailing-lists.html

Subversion reported the following
(you can copy the content of this dialog
to the clipboard using Ctrl-C):

In file
'D:\Development\SVN\Releases\TortoiseSVN-1.7.6\ext\subversion\subversion\libsvn_client\externals.c'
line 140: assertion failed (svn_dirent_is_absolute(local_abspath))
---
OK
---

   \\|//
   (@ @)
+-oOO---(_)--Ooo+
Thanks & Regards,
Jayaraj Esvar
AMD India Pvt Ltd,
Plot # 102 & 103,
Export Promotion Industrial Park
Whitefield, Bengaluru, India - 560066.
Email: jayaraj.es...@amd.com
Tel: +91-80-67830488
Mb:+919738282381
Fax: +918033230555
PS: NO TREES WERE CUT TO SEND THIS MESSAGE THOUGH A FEW MILLION
ELECTRONS WERE SEVERELY MUTILATED.
++
  |___|___|
   ||   ||
   ooO Ooo



Re: Bug while updating external sources

2012-04-10 Thread Ulrich Eckhardt
Thanks for the report, but there is little anyone can do about this
because ...

> [...] with as much information as possible about what you were trying to do.

...this important information is missing. It is required to reproduce
the problem.


> But please first search the mailing list archives for the error message
> to avoid reporting the same problem repeatedly.

Do this, too, unless you already did.

Thanks!


Uli
**
Domino Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**
Visit our website at http://www.dominolaser.com
**
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten 
bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen 
Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein 
sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, 
weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte 
Änderungen enthalten. Domino Laser GmbH ist für diese Folgen nicht 
verantwortlich.
**



Can (Tortoise) Svn auto uncompress-recompress files to merge/update files?

2012-04-10 Thread Ruth Ivimey-Cook

Folks,

I'm using TortoiseSVN on Windows 7 talking to a mod_dav server in Apache 
hosted in Fedora 13. While TSVN is working for me, it might be possible 
to use another tool if that would help.


The svn repo I maintain contains a lot of files for a simulator. The 
files define the simulator environment and are in fact well-formed XML. 
However the simulator stores them on disk as compressed files (*.bin), 
and the so the repo does too. This is all fine, except I lose the 
ability to track and merge changes.


Is there a way (hook?), when TSVN sees a file is different, for it to 
call an uncompress utility on the files from disk and repo, do the 
merge/whatever, and then recompress again once finished?


I have the compressor (not ZIP - it's special). I emphasise: the use of 
compressed files is not my choice, it's the simulator's, and I can't 
alter that. There is never more than one XML file in a compressed file 
(think gzip not unzip)


So, just to be clear, I imagine the current svn_client side_update 
process to be something like:


Code:

for each working file do
  if working version number lower than repo version number {file out of date}
if date or size properties differ from base version And
   checksum differs from base version And file is mergeable {working 
version modified }
  fetch latest version {now have 3: base, latest, working }
  diff3 base version, latest version, working version { now have patch to 
working }
  if diff patches don't conflict
patch working version
  else
mark for manual merge
  end if
end if
  end if
end for

... probably left stuff out but, assuming it's not too bad, I'm saying : 
can this be modified to:


Code:

for each working file do
  if working version number lower than repo version number {file out of date}
if date or size properties differ from base version And
   checksum differs from base version And file is mergeable {working 
version modified }
  fetch latest version {now have 3: base, latest, working }
*   uncompress just-fetched latest version {read only, temporary }
  uncompress working version {to be patched, temporary }
  uncompress base version {read only, temporary }
*   diff3 base version, latest version, working version { now have patch to 
working }
  if diff patches don't conflict
patch working version
* compress working version {new working version }
*   else
mark for manual merge
  end if
*   delete temporary files
* end if
  end if
end for

Of course, similar changes would be needed in some other code paths, 
notably view differences.


Thanks
Ruth

--
Software Manager&  Engineer
Tel: 01223 414180
Blog: http://www.ivimey.org/blog
LinkedIn: http://uk.linkedin.com/in/ruthivimeycook/



Re: Can (Tortoise) Svn auto uncompress-recompress files to merge/update files?

2012-04-10 Thread David Weintraub
Why store the files as compressed if you need to merge them? You're
not saving anything by zipping them up as a compressed archive.
Subversion uses diff format to store changes, so each revision only
stores the differences from the previous version.

In fact, you're probably wasting a lot more room storing these files
as a compressed archive. Each change in that compressed archive means
storing the differences between one compressed archive vs. the other,
and the differences are probably pretty major since minor differences
in compressed files can filter throughout the entire compressed
archive.

So, uncompress them, and store them as pure XML files. Then, you can
use Subversion to track individual diffs and do your merges. By the
way, Subversion default diff and merge tools aren't too good for XML
because XML files aren't line oriented. Fortunately, you can specify
your own diff and merge tools when you use Subversion. Find a good XML
diff and merge tool for these files.

-- 
David Weintraub
qazw...@gmail.com


Subversion build on windows

2012-04-10 Thread arun kumar
Hi,

I'm trying to build Subversion on Windows. I got following error when I ran
the script gen-make.py



>c:\Python27\python.exe gen-make.py -t vcproj --vsnet-version=2008

Found libdb44.lib in db4-win32



Generating for Visual Studio 2008



Could not detect Ruby version, assuming 1.8.

  Ruby bindings will be linked with msvcrt-ruby18.lib



Found installed perl version number.

  Perl bindings will be linked with perl514.lib



Could not find installed SWIG, assuming version 1.3.25



Found SQLite version 3.7.11



Found ZLib version 1.2.6



Found neon version 0.26.1



swig not found; skipping SWIG file generation...

Traceback (most recent call last):

  File "gen-make.py", line 317, in 

main(conf, gentype, skip_depends=skip, other_options=rest.list)

  File "gen-make.py", line 65, in main

generator.write()

  File "build\generator\gen_vcnet_vcproj.py", line 214, in write

self.write_project(target, fname, deplist)

  File "build\generator\gen_vcnet_vcproj.py", line 86, in write_project

configs = self.get_configs(target)

  File "build\generator\gen_win.py", line 476, in get_configs

libdirs=self.get_win_lib_dirs(target, cfg),

  File "build\generator\gen_win.py", line 1000, in get_win_lib_dirs

fakelibdirs.append(self.apath(self.httpd_path, cfg))

  File "build\generator\gen_win.py", line 361, in apath

if os.path.isabs(path):

  File "c:\Python27\lib\ntpath.py", line 57, in isabs

s = splitdrive(s)[1]

  File "c:\Python27\lib\ntpath.py", line 125, in splitdrive

if p[1:2] == ':':

TypeError: 'NoneType' object is not subscriptable



Any suggestions are welcome.


Thank you.
Arun