Re: subversion checkout accidently to C:\ drive - how undue?

2011-01-13 Thread Lorenz
dba2010 wrote:
>I accidently checked out a project to the c drive and now all of the
>folders on the c drive including the program files have question marks
>on them and are read only.  How do I undue this?

this sounds like you're using TSVN.
In that case better ask on the us...@tortoisesvn.tigris.org mailing
list.
-- 

Lorenz



Re: problem with mutated vowel in log-message-contents

2011-02-20 Thread Lorenz
Stephen Connolly wrote:
>unix shell scripting could solved it for you
>
>bash
>for rev in $(svn log ... | sed -n -e "..."); do svn ps --revprop svn:log
>"$(svn pg svn:log -r $rev | sed -e "s/oldstring/newstring/g;")" ... ; done

svn:log may be multi-line ...


... but

> svn pg svn:log --revprop -r $rev $url | sed ... | svn ps svn:log --revprop -r 
> $rev --username ... --password ... --file - $url

should do it (... ==  fill in the blanks 8-)
-- 

Lorenz



Re: Using tags with SVN

2011-04-03 Thread Lorenz
Stirnweiss, Siegmund  SZ/HZA-ZIT3 wrote:
>[...]
>We use tags in CVS to identify the files which have passed module tests
>and should make it into our integration test environment. When they have
>passed the integration tests we use a different tag to identify the
>files, which make up the software in/for our production environment.
>[...]

if I read that (and the rest of the thread) correctly, that sound like
an 'unstable trunc' -> 'QA branch' -> 'stable branch' eapproach.

normally you would propagate changes from trunc to QA-branch and from
there to the stable-branch via merging, but if you don't do cherry
picking at all, you also could replace the file in the branch by a
fresh copy from trunc (or QA-branch respectively).

Normally that requires a svn delete followed by a svn copy resulting
in two commits, but if you are working from the command line you can
use svnmucc to do it in one commit.
-- 

Lorenz



Re: hook permissions, visualsvn, windows

2011-06-08 Thread Lorenz
Henry Hartley wrote:
>I have VisualSVN 2.1.9 running on a Windows Server 2008.
>[...]
>The hook file, which is meant to update a checked out version of a web site 
>located
>where the web server expects it, has the following three lines (not counting 
>comments,
>also, the last two lines below are one line in the hook):
>
>>REPOS="$1"
>>REV="$2"
>>"C:\Program Files (x86)\VisualSVN Server\bin\svn" update "$REPOS"
>>   D:/websites/wwwsite1

that doesn't look like a windows batch file to me.
You sure that runs from the windows command line?

Doing so on win xp gives me errors about the "REPOS=$1" and "REV=$2"
lines. And the when I correct the syntax the call to svn results in
svn trying to update $REPOS (literally!) and D:/Websites/wwwsite1


Anyway, the syntax of the update command is:

svn up 

no repository url/path required/allowed.
-- 

Lorenz



Re: Questions

2011-06-13 Thread Lorenz
Richard Cavell wrote:
>[...]
> How do I get my "$Id$" back?

if there are no local changes to the file, you can just remove the
svn:keywords property, delete the file and then perform an update on
the wc.

That will give you the state of the $Id$ keyword as it was initialy
committed.
-- 

Lorenz



Re: Questions

2011-06-14 Thread Lorenz
Geoff Hoffman wrote:

>Why remove the Id keyword? Just delete the file (not svn delete, OS level
>delete) then svn up.
>
>
>On Mon, Jun 13, 2011 at 11:08 PM, Lorenz  wrote:
>[...]
>> you can just remove the svn:keywords property
-- 

Lorenz



Re: Deleting a directory with a space in it.

2011-09-19 Thread Lorenz
Srdan Dukic wrote:

I don't think you have a problem with spaces here.

>[...]
>error: you don't have enough permissions for this transaction:
>you can't remove Grad Training/

you should quote the complete error message because the "Commit
blocked by ..." part is essential here


>and from the Apache logs:
>[...]
>[Tue Sep 20 16:28:00 2011] [error] [client 192.168.1.70] Commit blocked by
>pre-commit hook (exit code 1) with output:\nerror: you don't have enough
>permissions for this transaction:\nyou can't remove Grad Training/\n  [409,
>#165001]

the operation is clearly prohibited by a pre-commit hook script on the
server. You will need to talk to the person who put it there.
-- 

Lorenz



Re: Releasing an open source subversion client

2011-09-22 Thread Lorenz
VisioSVN Project wrote:
>We are from university of Moratuwa, Sri Lanka and our team is developing an
>open source Subversion client as our internship project. We have discussed
>about this VisioSVN project before and as you suggested we have hosted the
>source code in Google Code. It will be great if you can take a look at it
>and give your suggestions/feedbacks. This is the URL where you can checkout
>the source code :
>*http*://visiosvn.googlecode.com/svn/trunk/<http://visiosvn.googlecode.com/svn/trunk/>

I think you should reconsider the name choice.

My first thought was: "oh nice, svn-integration with MS-Visio. Does it
have a graphical diff-tool for visio charts?"

but, I rejoiced too soon ...
-- 

Lorenz



Re: Migrating files between two repositories without admin rights and preserving history

2011-10-11 Thread Lorenz
 wrote:
>I want to copy files between two repositories, to which I have access as a 
>regular user but no as an admin, so I  face the following issues:
>
>* Need to preserve the history (so export / import doesn't work)
>* Don't have admin rights to svnadmin is out of the questions
>* I don't want to sync the whole repository, just one directory inside 
>(http://repo1/trunk/source/dir1 to http://repo2/trunk/source/dir1)

have a look at
http://subversion.apache.org/docs/release-notes/1.7.html#svnrdump
-- 

Lorenz



Re: Migrating files between two repositories without admin rights and preserving history

2011-10-13 Thread Lorenz
 wrote:
>Thanks for your reply. Do you know if I need to have both SVN 1.7
>on the client and server side, or is just enough with the client?

I don't think so

anyways, I just read elsethread that dumpfilter does not work with the
dump format version that 1.7 uses.


>Any other way that doesn't involve using brand new SVN?

svnsync allows to mirror a subtree of a repository
-- 

Lorenz



Re: Migrating files between two repositories without admin rights and preserving history

2011-10-13 Thread Lorenz
Daniel Shahaf wrote:
>Lorenz wrote on Thu, Oct 13, 2011 at 15:22:30 +:
>> [...]
>> anyways, I just read elsethread that dumpfilter does not work with the
>> dump format version that 1.7 uses.
>
>You misunderstood.
>
>svndumpfilter does not work with format 3 dumpfiles, produced by
>svnrdump and by 'svnadmin dump --deltas'.  Any version of svn can
>produce a format-2 dumpfile via 'svnadmin dump' without --deltas.

I stand corrected - should have reread the particular message 8-(

sorry for the confusion
-- 

Lorenz



Re: Can relocate from a svnserve based server that was 'svn sync' to a new http based server

2012-01-30 Thread Lorenz
Brent Webster wrote:
>[...] I'm using svnsync to transfer the older "svn://" repositories to the new 
>"http://"; repositories
>The problem that I'm having is [...]
>svn: E195009: The repository at 
>'http://svnrepo2:18080/svn/admin/main/svnserver/bin' has
> uuid '65d03f8f-4f6b-4b7c-8505-7ddab04e9aed', but the WC has 
> 'ad8b7147-7818-0410-a3fb-ed15fa4e4e0d'

every repository gets a unique ID (uuid) on creation.
But to be able to svn relocate, your new repo needs to have same uuid
as the old one

See
http://svnbook.red-bean.com/en/1.7/svn-book.html#svn.reposadmin.maint.uuids
for more information.
-- 

Lorenz



Re: Need to subscribe SVN group.

2012-02-02 Thread Lorenz
Sachin Gurumukhi wrote:
>[nothing]

go to http://subversion.apache.org/mailing-lists.html for instructions
-- 

Lorenz



Re: Questions about importing data into the Subversion repository on a WINDOWS 2003 Server platform

2012-02-27 Thread Lorenz
Anastasio, David M CTR USAF AFMC ESC/HNID wrote:
>I have installed Apache Subversion on a Windows 2003 Server desktop,
>along with the TortoiseSVN client.
>[...]
>My question is how to use the subversion import utility to place my
>source files under source code control.

TSVN comes with documentation too.
Perhapse searching for 'import ' there might help


OTOH you are talking about 

>I have configured my vendor software to enable Source Code control
>integration.

so perhapse your vendor software allows you to do the import too?
-- 

Lorenz



Re: details for product

2012-03-02 Thread Lorenz
shubhangi.waghm...@hdfcbank.com wrote:
>We are looking for versioning software.
>
>Request you to please provide  following information about this product.
>1. What is licensing policy.(like whether it is licensed, if yes what is
>the cost for server and client installation)
>2. how it manages centralized repository for code.
>3.  does it have any demo version.

oh come on

have you even looked at http://subversion.apache.org
-- 

Lorenz



Re: SVN Problems

2012-03-06 Thread Lorenz
Waseem Shahzad wrote:
> I am running SVN in the .Net environment. à Using TSVN and Ankh SVN
>I have checkout the repository (almost 1 GB) and working in it. It gets stuck 
>when on Commit with followings solutions:
>[...]
>3.   After moving from VSS to SVN , Visual Studio gets slower down in 
>saving files , Why?

there might be the slightest chance that the people over at
us...@ankhsvn.open.collab.net are better equipped to helping with
AnkhSVN/Visual Studio questions 8-)
-- 

Lorenz



Re: Apache Subversion 1.7.4 Released

2012-03-08 Thread Lorenz
Tim Kuehn wrote:

>how do I get off this list?

by going to http://subversion.apache.org/mailing-lists.html and
following the instructions?
-- 

Lorenz


PS: and please don't hijack unrelated threads



Re: preventing commits (this is *not* a classic hook question)

2012-03-20 Thread Lorenz
Bob Archer wrote:

>> Hello,
>> 
>> I'm wondering if there is any strategy for temporary preventing people from
>> committing to a svn repository, without the person who sets the hook (or sth
>> similar) being the admin of the svn repository. Thus, in this case, there is 
>> no
>> option to directly access the /hooks/ folder.
>
>Create a project in your repository that contains a config file of some type.
>Give write access to this path only to those people that you want to be able to
>enable/disable checkins.
>
>Create a working copy of said config project and check it out on your svn 
>server.
>Have your hook script update the working copy (or perhaps have a cron job that
>updates this wc every 60 seconds or whatever) and read this config file to
>determine if commits are allowed. 
>
>All the users will have to do is edit the config file and commit it. 


slight modification to that solution:

Create a revprop in revision 0 in your repository that contains a the
block/noblock information
Give write access to this revprop only to those people that you want
to be able to enable/disable checkins.

Have your hook script check this revprop to determine if commits are
allowed. 

All the users will have to do is edit the revprop (no commit
required). 


Original version has the side benefit of providing an audit trail for
the configuration changes.
-- 

Lorenz



Re: Implementations of an SVN/DAV aware proxy?

2012-04-16 Thread Lorenz
Tim Watts wrote:
>[...]
>We're changing SVN servers from mod-dav-svn to SCM-Manager - and one 
>minor fly in the ointment is the style of our old repo URI, which was of 
>the form:

is there a reason you can't just use 'svn relocate' on the working
copies?
-- 

Lorenz



Re: Can't commit after deleting files from repository

2012-05-01 Thread Lorenz
nut wrote:

>I'm trying to delete some files from my repository. After "svn delete
>", I get
>
>D  
>
>as expected, but when I try to commit, I get
>
>svn: Commit failed (details follow):
>svn: ' is not under version control

looks like you are trying to 'svn commit '

You need to commit the containing folder instead, because that's where
the deletion is recorded.
-- 

Lorenz



Re: Can't commit after deleting files from repository

2012-05-02 Thread Lorenz
Daniel Shahaf wrote:

>Lorenz wrote on Wed, May 02, 2012 at 06:40:03 +:
>> nut wrote:
>> 
>> >I'm trying to delete some files from my repository. After "svn delete
>> >", I get
>> >
>> >D  
>> >
>> >as expected, but when I try to commit, I get
>> >
>> >svn: Commit failed (details follow):
>> >svn: ' is not under version control
>> 
>> looks like you are trying to 'svn commit '
>> 
>> You need to commit the containing folder instead, because that's where
>> the deletion is recorded.
>
>What?
>
>% svn rm foo
>D foo
>% svn ci -mm foo
>Deleting   foo
>
>Committed revision 4.

your right.

that teaches me (again) to try out everything before posting and to
not rely on memory alone.

sorry for the noice
-- 

Lorenz



Re: Upgrade to v1.7 = death of working copies

2012-05-10 Thread Lorenz
Julius Smith wrote:
>On my MacBook, MacPorts upgraded me to subversion 1.7 at some point, and
>when notified to upgrade my working copies, I did so.
>[...] so now I cannot check in a week's worth of changes in several
>working copies.

without any more information regarding what you are trying exactly and
what error messages you get then, there is little chance anyone can
help you.


>[..]
>3. Subversion allowing working copies to be "upgraded" without verifying
>that they can be checked in afterwards.  In other words, the server should
>be required to upgrade first.
>
>Also, what happened to compatibility across at least one major release
>number?  I thought nearly all software packages did that.

there should be no problem commiting from a 1.7 WC to a 1.6 server.
But again: without more details ...


>[...]

what protocol (file://, svn://, http://)?
can you check out a new WC and commit from that?
do all upgraded WC have problems?
...
-- 

Lorenz



Re: svn cp (tag) should make an svn:external nail down to a revision

2012-06-04 Thread Lorenz
rupert.thurner wrote:
>what is the best possibility to create a tag of a folder containing
>svn:externals? the goal is that the external references do not point
>any more to the head, butto the fixed revision when the copy / tag was
>created?

needs some typing / scripting but:

svnmucc -U 
cp  p1/trunc p1/tags/p1t1 \
cp  p2/trunc p2/tags/p2t1 \
propset svn:externals "^/p2/tags/p2t1 p2" p3/tags/p3t3
-m "tagging p1 & p2 and adapting svn:external used by p1"

does the job too (does only work if everything is in one repo).
-- 

Lorenz



Re: How to create a tag from multiple revisions?

2012-06-14 Thread Lorenz
marc wrote:
>As the subject says, I want to create a tag consisting of at least 2 
>different revisions in the trunk.
>All revisions concern the same project. Reason is, I have several revisions 
>in the trunk and I want to exclude some revisions from the tag because the 
>code in those is not yet production ready.
>
>For example the trunk consists of this:
>
>trunk/
>  rev333
>  rev331
>  rev330
>  rev229
>  rev228
>
>I want to create a tag based on rev333 and rev330 but not rev 331 since 
>that code is not finished yet.

at first glance I would interpret this diagram as rev### being
subfolders of trunc, but that is not consistent with the rest of the
text.

So assuming you realy mean revisions of trunk:

you either take trunk@330 and merge in (cherry pick) trunk@333,
or take  trunk@333 and back out ( reverse-merge) the changes from
trunk@331.


you might want to read
http://svnbook.red-bean.com/nightly/en/svn.branchmerge.html


I would create a release branch from the last stable trunk version
(330) and merge in the trunk revisions that I want to go in the
release. Then create the tag from the branch.


> Am I able to do this - using subclipse or tortoise?

yes 8-)
-- 

Lorenz



Re: How to find out Subclise version?

2012-06-18 Thread Lorenz
Thorsten Schöning wrote:
>Guten Tag frame,
>> I have tried many places in Eclipse(version Indigo) and I still cannot find
>> out which version of my Subclipse is. 
>
>Help\Install New Software\What is already installed? in the middle on
>the right side of the window.
>[...]

 be aware that the subclipse version matching svn 1.7 is 1.8
-- 

Lorenz



Re: SVN codebase backup

2012-08-02 Thread Lorenz
Kaushal Shriyan wrote:
>On Thu, Aug 2, 2012 at 9:40 PM, Ben Smith-Mannschott
> wrote:
>> On Thu, Aug 2, 2012 at 3:51 PM, Kaushal Shriyan
>>  wrote:
>>> Hi,
>>>
>>> is there a backup tool to backup SVN Codebase?
>>
>> Have a look here:
>>
>> http://stackoverflow.com/questions/33055/what-is-the-best-way-to-backup-subversion-repositories
>>
>> The suggestions of "svnadmin dump" and "svnadmin hotcopy" are both
>> good. Either could be used as the nucleus of a backup procedure for
>> your repositories.
>>
>Thanks for the quick reply. Basically I have hosted my SVN
>repositories in http://www.cloudforge.com/codesion/
>can i use "svnadmin dump" and "svnadmin hotcopy" for backing up repos
>from http://www.cloudforge.com/codesion/

in that case (remote repository without root access) you should have a
look at svnsync (part of subversion) or rsvndump
(rsvndump.sourceforge.net)

or perhapse http://www.cloudforge.com/faq/index.php#export already
solves your problem?
-- 

Lorenz



Re: Upgrade 1.5.4 to 1.7.5

2012-08-03 Thread Lorenz
robin.gueldenpfen...@enercon.de wrote:

>
>Hi Subversion fellows,
>
>we plan to upgrade our Subversion Server from version 1.5.4 to 1.7.5
>
>Subversion runs in a context of  a HTTPD version 2.2.3 with FSFS repository
>structure.
>
>It has been build manually by compiling the source code.
>
>Server environment is a SLES system.
>
>
>My humble questions are the following:
>
>Do I just need to compile the new source and overwrite the existing binary
>files?
>Are there any new dependencies or upgrades?
>
>It's long ago since I installed Subversion and I'm not an advanced Linux
>administrator in case of installing software by hand from source code.
>
>So I thank you in advance for your anwers and hints.


have a look at http://software.opensuse.org/package/subversion
-- 

Lorenz



Re: How to stop delete files/directory from SVN Repo Browser

2012-08-06 Thread Lorenz
Subodh Singh wrote:
>I am new  to SVN Repository. I need help to stop deletion of files/directory
>from Repo Browser, so that user can't commit if any delete operation is
>occurred. I can get this information using svnlook but after commit. I need
>to catch any delete action before commit. I tried it using svn hooks but not
>able to do so. Please guide me. 

you can examine the prepared but not yet finalized commit (the
transaction in svn speak) in the precommit hook just like you can the
newly created revision in the postcommit hook.
-- 

Lorenz



Re: Question about web access to SVN repository ....

2012-08-29 Thread Lorenz
Anastasio, David M CTR USAF AFMC AFLCMC/HNID wrote:
>My current configuration is Subversion 1.7.6 with Apache server 2.2.22 and
>TortoiseSVN client (not sure which version at the moment), running on
>Windows 2003 Server.
>
>On the local machine, I can access the SVN repository through the file:///
>   directive as well as
>the http://localhost/ <http://localhost/%3cpath_to_repository>
> URL.
>
>I can also access the URL from a remote host with http://IP_Address/
><http://IP_Address/%3cpath_to_repository> . When I do
>this, however, the presentation of the subversion repository appears in a
>directory format similar  to what you would normally see by accessing a pub
>site with ftp. 
>
>Question:  
>How can I get the presentation of the SVN repository from the remote host to
>appear in the same format as shown on the local machine?

I don't think I understand the question.

Using the TSVN repo browser should give you the same representation of
the repo regardless of the protokoll or if it's local or remote.

Or do you want to access the repo remotely via web browser?
-- 

Lorenz



Re: Need Help : Purging very old (/unwanted) revisions

2012-09-04 Thread Lorenz
vinay modi wrote:
>My organization's svn repository size has grown too large and most of the
>old revisions of documents are never being used.
>[...]
>Now, I want to keep only the last 2 revisions of all documents i.e 2 for A,
>2 for B, 2 for C and 1 for D..

http://subversion.apache.org/faq.html#removal
and
http://subversion.tigris.org/issues/show_bug.cgi?id=516
-- 

Lorenz



Re: accessing my repository from another computer

2012-10-10 Thread Lorenz
Carmit Shiran wrote:
>I installed TortoiseSVN on my computer and I want to access my files in the
>repository I created on my local computer, from another computer.
>Is that possible? Can I just access via a path (e.g/ file://) ? what
>exactly should I write in the path? How do I specify on what computer is my
>repository?
>Do I need a server?
>It's only me, no other users so I'm trying to avoid using a server (which
>I'm also not familiar with). I prefer using a path or something simple.

using the file:// protocol is not recommended for other purposes then
local testing.

setting up svnserve quiet easy:

either run it from the command line as required

svnserve -d --root 

and close the command prompt when finished


or create a windows service (all in one line)

sc create svnserve
  binpath= "\"\svnserve.exe\"
--service --root \"\"" 
  DisplayName="svnserve" depend= Tcpip

to run svnserve in the background automatically


see also http://svnbook.red-bean.com/nightly/en/svn.serverconfig.html
-- 

Lorenz



Re: subscription

2010-01-20 Thread Lorenz
Andreas Kress wrote:
>subscribe

that would be users-subscr...@subversion.apache.org
-- 

Lorenz



Re: HELP regading subversion

2010-01-22 Thread Lorenz
Hiroshi Miyazaki wrote:
>[...]
>All of repository hooks(strat-commit, pre-commit,..) are
>invoked when excuting check-in/check-out command?
>
>If then, could I put our required functionality on those hooks?
>[...]

you've been pointed to the documentation regarding subversions hooks
already.

For more specific help you will need to provide more details about
what you want to do.
-- 

Lorenz



Re: How to install on HP-UNIX and connect by TortoiseSVN client

2010-01-25 Thread Lorenz
Sajid Elyas Khan wrote:
>[...]
>Please can you guide us how to install  Subversion software  on
>HP-UNIX(PA-RISC) and connect to windows client TortoiseSVN.

this mailing list deals with TortoiseSVN (windows GUI client for
subversion) exclusive.

For questions about setting-up a subversion server you'd better be off
to be off to the main subversion user mailing list at:

users@subversion.apache.org
-- 

Lorenz



Re: How to install on HP-UNIX and connect by TortoiseSVN client

2010-01-26 Thread Lorenz
Ryan Schmidt wrote:
>[...]
>This *is* the main Subversion user mailing list, and I would ask the user if
>he has already checked the obvious download location:

Ups. I was sure to be in the TSVN list.

My apologies to the OP.
-- 

Lorenz



Re: unsubscribe t...@specialistdevelopment.com

2010-03-18 Thread Lorenz
Anthony Davis wrote:

>unsubscribe t...@specialistdevelopment.com

according to:

 http://subversion.apache.org/mailing-lists.html

for subscribing you send an email to:

users-subscr...@subversion.apache.org

so in oder to UNsubscribe send an email to:

users-unsubscr...@subversion.apache.org
-- 

Lorenz



Re: My question about subversion

2010-04-06 Thread Lorenz
vishwajeet singh wrote:

>> If we install Subversion and begin to use it, can we migrate it to a
>> different server without loosing any of our data?
>>
>
> Short answer yes you can without much hassle.

long answer


http://svnbook.red-bean.com/nightly/en/svn.reposadmin.maint.html#svn.reposadmin.maint.migrate
-- 

Lorenz



Re: Is there a simple log/diff frontend (like gitk)?

2010-04-13 Thread Lorenz
Ryan Schmidt wrote:
>On Apr 13, 2010, at 12:32, Thomas Allen wrote:
>
>> Maybe I have not yet
>> mastered the "log" command, but  I find the output of the following
>> two commands to be confusing:
>> 
>> $ svn log -r HEAD
>> 
>> r3617 | tallen | 2010-04-12 15:57:35 -0400 (Mon, 12 Apr 2010) | 1 line
>> 
>> full comments + jslint fixes
>> 
>> $ svn log | grep tallen # outputs nothing
>
>Probably your working is not up to date. "svn up" before running "svn log" 
>would probably work.

because "svn log" on a working copy without "-r" defaults to "-r BASE"
which is the last checked-out/updated-to revision.
-- 

Lorenz



Re: Recursive setting of versioned properties using URL using propedit or svnmucc

2010-04-21 Thread Lorenz
Bettual Richter wrote:
>I'm trying to write a skript to set versioned properties after been 
>triggered by a 
>hook but I seem to get stuck finding a solution and hope someone here 
>is able to help me or point out if it's not possible.
>
>I'd like to set a property for every file in a certain 
>directory(recursivly) using 
>an url.  Something like 
>
>svn propedit -R PROPNAME PROPVAL URL

I think you meant propset

but anyhow svn prop* for versioned properties only work in on a
working copy.
the remote version only works for revision properties


>or 
>
>svnmucc propset PROPNAME PROPVAL -R URL

svnmucc has no -R option.


>My problem is that propedit doesn't support recursivly setting of 
>properties and svnmucc gives an error( 'file already exists') when been 
>used on a file. 
>I'd also be glad if someone had a link to a kind of documentation for 
>svnmucc which I haven't been able to find till now because I would like 
>to avoid raising the revision number for each file/dir.

you either need to checkout to a temporary working copy apply the
properties and commit,

or generate a file containing one 'propset PROPNAME VAL URL' command
per line for each file/folder you want to modify.
Then call svnmucc with '--extra-args FILENAME'
-- 

Lorenz



Re: Wanted: pre-commit hook to prevent commits to externals definition

2010-06-07 Thread Lorenz
David Aldrich wrote:
>Please can anyone point me to an example of a svn pre-commit hook that 
>prevents commits
>to files that are members of an externals definition?
>
>We want to allow such files to be committed only from within the external 
>directory, i.e. where
>they originate from.

As long as the externals are pointing to the same repository it should
be possible to examine the transaction and determine if any of the
changed paths is related to an external definition (external
properties can be extracted from the transaction too).
-- 

Lorenz



Re: Wanted: pre-commit hook to prevent commits to externals definition

2010-06-07 Thread Lorenz
Daniel Becroft wrote:
>Lorenz wrote:
>> David Aldrich wrote:
>>>Please can anyone point me to an example of a svn pre-commit hook that 
>>>prevents commits
>>>to files that are members of an externals definition?
>>>
>>>We want to allow such files to be committed only from within the external 
>>>directory, i.e. where
>>>they originate from.
>>
>> As long as the externals are pointing to the same repository it should
>> be possible to examine the transaction and determine if any of the
>> changed paths is related to an external definition (external
>> properties can be extracted from the transaction too).
>
>Really? From my testing, it seemed that SVN doesn't descend into
>externals during a commit, regardless of whether the external points
>to the same or a different repository.
>
>Have you seen different behaviour?

yes and no 8-)

The command line client does not decend into externals, but you can
list the external folders additionally to get an atomic commit,

and I'm using TSVN as my main client, which lists externals from the
same repository in the commit dialog, selected for commit by default.
-- 

Lorenz



Re: Setting auto-props from Server side ?

2010-06-07 Thread Lorenz
Ravi Roy wrote:
>Just curious if there is a way out to set auto-props for certain binary
>files on server side ? I know, it is can be set on Client like TortoiseSVN.

auto-props are a client side configuration that's shared by all
subversion clients (TSVN only provides a GUI for that task). 

You could put the relevant config file under version control though.
That won't give automatic propagation of changes, but at least you
only have to do an update on the client to get the actual settings (no
manual fiddeling in config files)
-- 

Lorenz



Re: Help needed on how to use this list

2010-07-07 Thread Lorenz
andy corpes wrote:
>I am having trouble figuring out how to use this list, it appears to be like
>no other i use. Hopefully i am
>just looking in the wrong places.
>
>Obviously I can post questions, but is there anyway that i can get a copy of
>all posts to be directed to my inbox?
>At the moment the only way i have figured out to see the posts is by looking
>at the archives
>however i cannot figure out how to reply to a post.
>
>Help would be much appreciated as i am stuck trying to build svn on zOS.

send an email to users-h...@subversion.apache.org
you wil get an answer that tells you all you need to know about this
mailing list (including how do request archived emails).

alternatively you could use a email-to-news service like gmane.org to
read and participate using a newsreader.
-- 

Lorenz



Re: How to access local svnserve repository in Windows

2010-07-08 Thread Lorenz
David Bartmess wrote:
>I've setup a local repository under C:\svn_repository\Test using 
>"svnadmin create c:\svn_repository\Test", and want to access it via the 
>command line svn.exe. The svnserve is setup as a Windows service, and I 
>can see that it's started.
>[...]
>svn import -m "Test import" . svn://localhost/Test
>svn: No repository found in 'svn://localhost/Test'

so it seems your server is running ok (because that is a response from
the server), but either there is something wrong with the path you
gave when starting the server, or something went wrong whit creating
the repository.

does accessing the repository via file:// protocol work?
Try something like
 svn list file:///c:/svn_repository/Test



Re: Mailing lists? Really?

2010-07-28 Thread Lorenz
Stanimir Stamenkov wrote:
>> I want to search for solutions, complain about my favorite missing 
>> features, and reply to other people's problems when I've already 
>> solved them.
>
>Search for solutions in the archives:
>
>http://subversion.apache.org/mailing-lists.html
>
>You may even use Google:
>
>http://www.google.com/search?q=i+want+solutions+site%3Amail-archives.apache.org%2Fmod_mbox%2Fsubversion-users


in addition there are also http://svn.haxx.se and http://gmane.org
that archive the subversion mailing lists.

The latter even provides a mailing-list to nntp gateway as its main
service 8-)
-- 

Lorenz



Re: How to cut and graft?

2010-08-01 Thread Lorenz
Daniel Shahaf wrote:
>Ryan Schmidt wrote on Thu, Jul 29, 2010 at 20:50:16 -0500:
>> svn rm $URL/trunk -m "Delete old trunk"
>> 
>> svn mv $URL/branches/thebranch $URL/trunk -m "Make branch thebranch the new 
>> trunk"
>
>And to do this rm+mv in one commit, you could use svnmucc.

an perhaps not svn rm the old trunk but svn mv it, so you have easier
access to it (no need to remember/investigate the revision where it
was deleted)
-- 

Lorenz



Re: Repository Directory Tree

2010-09-09 Thread Lorenz
Giulio Troccoli wrote:
>[...]
>- check out the whole thing (it might be too big but maybe not)
> svn checkout file:///var/svn ~/tmp
>This will create a new directory called tmp in your home directory whit the 
>whole of your repository.
>Insinde ~/tmp you will have var/svn/proj1, var/svn/proj2 and var/svn/proj3.
>
>- move the projects to the root of your repository
> cd ~/tmp
> svn move var/svn/proj1 proj1
> svn move var/svn/proj2 proj2
> svn move var/svn/proj3 proj3
>Since you have used svn command the history will be preserved.
>
>- commit
> svn commit -m"Reorganising the projects"

if you don't want to check-out the whole repository, and are working
from the command line anyway, you can use svnmucc to do the
restructuring in one commit without a working copy.

svnmucc  mv url1 url2  mv url3 url4 ...
-- 

Lorenz



Re: Repository Directory Tree

2010-09-13 Thread Lorenz
Nico Kadel-Garcia wrote:
>On Fri, Sep 10, 2010 at 5:57 PM, Nico Kadel-Garcia  wrote:
>> On Fri, Sep 10, 2010 at 1:42 AM, Lorenz  wrote:
>>[...]
>>> if you don't want to check-out the whole repository, and are working
>>> from the command line anyway, you can use svnmucc to do the
>>> restructuring in one commit without a working copy.
>>>
>>>        svnmucc  mv url1 url2  mv url3 url4 ...
>>> --
>>
>What's wrong with this syntax to do the move without a checkout?
>
> svn move [URLOFREPO]/var/svn/proj1 [URLOFREPO/proj1

nothing, just pointing out that it possible do to the rearrangement
without a WC directly in the repo in one revision.

For complicated rearrangements I would prefere the WC method myself,
because I can revert/redo as long as I want until I'm satisfied -
before commiting.
-- 

Lorenz



Re: Java API?

2010-09-20 Thread Lorenz
vishwajeet singh wrote:
>On Tue, Sep 21, 2010 at 1:12 AM, Thomas P Laford <
>thomas_p_laf...@raytheon.com> wrote:
>> Is there a Java library available that would allow me to access a file
>> stored in Subversion (TortoiseSVN 1.6) from a Java application and extract
>> its modification date/time?
>
> Have a look at http://svnkit.com/

but be aware, that subversion doesn't store individual modification
date/time but only the date/time a revision was commited.
-- 

Lorenz



Re: Multiple svn chekcouts in the same top-level hierarchy

2010-09-21 Thread Lorenz
Tennebø Frode wrote:

>[...]
>One of the files retrieved is the script "retrieve.sh" which in turn retrieves 
>~100 different products from my repository:

have you considered using svn:externals instead?

That would take care of your issue 1)
I don't think it will make a difference regarding issue 2) though.
-- 

Lorenz



Re: Correct way to undo commit of a tag?

2015-02-24 Thread Lorenz
David Aldrich wrote:

>My most recent commit was the creation of a tag.  I want to delete 
>that tag.  Should I reverse merge the commit or simply delete the tag?

If want to completely remove the tag, not only parts of it, a "svn rm"
is the best match.
It's also less effort because to can delete the tag directly in the
repository without the need for a working copy, because ...


>If I do a reverse merge I see a tree conflict:
>
>C:\>svn merge -c -69 
>--- Reverse-merging r69 into '.':
>   C tags\TAG_
>--- Recording mergeinfo for reverse merge of r69 into '.':
>U   .
>Tree conflict on 'tags\TAG_
>   > local dir edit, incoming dir delete upon merge
>Select: (r) mark resolved, (p) postpone, (q) quit resolution, (h) help:

... for a reverse merge of the tag creation you would need to do the
merge on a working copy of the parent folder of the tag.
-- 

Lorenz



Can someone please verfiy this "svn -v st" behaviour with file externals?

2015-05-12 Thread Lorenz
Hi all,

can someone please check if this realy is a regression, or if it is
just me doing something wrong.
 
I have a problem with "svn -v status" showing an unexpected result for
file externals.

This seems to be a regression that happended with svn 1.8.12/13

I've tried this with the binaries bundled with TSVN 1.8.11 (svn
1.8.13) and TSVN trunk nightly (build against
svn.apache.org/repos/asf/subversion/branches/1.9.x)

I've also tried with the 1.8.13 windows builds from
http://sourceforge.net/projects/win32svn/ and
http://www.visualsvn.com/downloads/ with the same results.


Using svn 1.8.11 binaries (bundled with TSVN 1.8.10) the is effect is
not reproducible.


After freshly checking out a working copy (containing file externals)
at first everything is ok.

C:\tmp\svn-file-ext-tests>svn -v status wc
 22 me wc
X21 me wc\empty-main.txt
 22 me wc\sub
X21 me wc\sub\empty-sub.txt


But after a "svn up" I get something like the following:

C:\tmp\svn-file-ext-tests>svn -v st wc
 22 me wc
X2   ?   ? wc\empty-main.txt
 22 me wc\sub
X2   ?   ? wc\sub\empty-sub.txt


PS: After producing the the error with a 1.8.13 version on a working
copy, switching back to 1.8.11 also shows the errror on this working
copy.


>>>>> reproduction receipt (windows batch)
>>

svnadmin create 

mkdir wc\main\sub
echo empty >wc\empty.txt

svn import --username me -m "" wc 
svn checkout --force  wc

svn propset svn:externals "^/empty.txt empty-main.txt" wc
svn propset svn:externals "^/empty.txt empty-sub.txt" wc/sub
svn commit --username me -m "" wc

svn checkout  wc2
svn -v status wc2

svn update wc2
svn -v st wc2

<<
<<<<<
-- 

Lorenz




Re: List commits for specific user & date range

2015-06-24 Thread Lorenz
Justin Taylor wrote:

>Is there some tool or option that will allow me to view all the commits made 
>by a specific user within a given date range?

depends ...


on windows you can try TSVNs log viewer which allows to set a display
range and a filter expression.


using the command line client you would need to script the filtering
for author
-- 

Lorenz



Re: Add mailing development

2015-12-01 Thread Lorenz
Alfredo Telles | Project Manager & Co Founder | Urbanweb wrote:
>Add me please let me know.

see http://subversion.apache.org/mailing-lists.html for how to
subscribe to the mailing lists

or use a news client via news.gmane.org
-- 

Lorenz



Re: Upgrade Subversion from 1.5 to 1.9

2016-03-22 Thread Lorenz
Bert Huijben wrote:

>I'm not sure where you read that, but subversion can upgrade working copies
>all the way up from 1.0. (See our compatibility guarantee)

perhapse here:
http://subversion.apache.org/docs/release-notes/1.9.html#wc-upgrade

>>Subversion 1.9 can only upgrade working copies created with
>>Subversion 1.6 and Subversion 1.7.
-- 

Lorenz



Re: SVN compatibility question

2016-04-01 Thread Lorenz
Branko ?ibej wrote:
>On 01.04.2016 10:21, Johan Corveleyn wrote:
>> On Fri, Apr 1, 2016 at 9:32 AM, Stefan Sperling  wrote:
>>> On Fri, Apr 01, 2016 at 05:36:34AM +, Daniel Shahaf wrote:
>>>> Normally, 'svn mv' does two things: (a) rename the file on disk,
>>>> (b) record in .svn/ that the rename had happened.  As of 1.8, we allow
>>>> the user to tell 'svn mv' to do only (b).  We don't expose that ability
>>>> in the standard command-line client, but it's available to API users
>>>> (such as tortoisesvn and bindings scripts) via the 'metadata_only'
>>>> parameter to svn_client_move7().
>>> I've been thinking that allowing users to perform a metadata-only move
>>> with 'svn mv' might save people running into this common rookie mistake
>>> some hair... If they look at 'svn help mv' to find this new hypothetical
>>> --meta-data-only option, that is. (We could re-use the --record-only
>>> option from 'svn merge' as a name.)
>> +1. Sounds like a good idea to me.
>
>Yup, and ditto for 'svn copy'; I know that SmartSVN has an option to
>find and fix up such mistakes, and apparently that's a very popular feature.

TortoiseSVN too
-- 

Lorenz



Re: single file version control - was: SVN

2016-05-29 Thread Lorenz
Andreas Stieger wrote:

>Nico Kadel-Garcia wrote:
>> On Fri, May 27, 2016 at 2:53 AM, Andreas Stieger  
>> wrote:
>> > On 26/05/16 20:08, PERRY JENNINGS wrote:
>> >> cannot use SVN because the code is for *non-object-oriented* applications
>> >> ; hence a single file, [...]
>It did sound like non-text assets. Either way, besides the limitation
>of working copies always being a directory, all svn clients support 
>checking out a selection of the tree, including down to a single file 
>therein.

the keyword is "sparse working copy" in that case
-- 

Lorenz



Re: How to remove a revision from the achieve

2016-08-28 Thread Lorenz
Eckard Klotz wrote:
>Unfortunately I have added something wrong into the my svn archive. I 
>know that it is possible how to remove it from the users content. But 
>the file is still part of the archive and I want to undo the adding of 
>the file.
>
>  * Is it possible to remove it from the whole archive again by deleting
>the last revisions?
>  * Or it is possible to copy an archive just until a specific revision
>with a command like hotcopy?

have a look at the maling list archive http://svn.haxx.se

there is plenty of relevant information
-- 

Lorenz



Re: Subversion dump/load - author

2016-09-15 Thread Lorenz
Tom Sorensen wrote:
>[...]
>Thank you – I’ll need to consider dumping the entire repo or use it the way it 
>is.

you always can do incremental dumps if the dump file gets to large, or
you can try svnsync
-- 

Lorenz



Re: svn switch, touches files with svn:keywords

2016-09-25 Thread Lorenz
Daniel Shahaf wrote:

>FEDERICO PRADES ILLANES wrote on Fri, Sep 23, 2016 at 12:36:24 +0200:
>> Steps to reproduce:
>> 
>>1. Create a branch b1.
>>2. Create an dummy file in b1, with svn:keywords.
>>3. Don't use the svn:keywords on the file.
>>4. Commit the changes to b1.
>>5. Create a branch b2, from b1.
>>6. Perform a switch to b2.
>> 
>> Expected results:
>> 
>>- Dummy file modification time hasn't change
>> 
>> Actual results
>> 
>>- Dummy file modification time has change
>
>I can reproduce this with current trunk and I agree it's a (minor) bug.
>[...]

are you sure about tha being a bug?

If for instance in the file the URL keyword is used to initialize a
string variable, wouldn't you want the file to be recompiled after the
switch?
-- 

Lorenz



Re: svn switch, touches files with svn:keywords

2016-09-26 Thread Lorenz
Daniel Shahaf wrote:

>Lorenz wrote on Mon, Sep 26, 2016 at 06:01:31 +:
>> are you sure about tha being a bug?
>> 
>> If for instance in the file the URL keyword is used to initialize a
>> string variable, wouldn't you want the file to be recompiled after the
>> switch?
>
>You are describing a different scenario than the OP.
>[...]

ah yes, I overlooked "3. Don't use the svn:keywords on the file."
-- 

Lorenz



Re: Implementing the Lock->Edit->Unlock cycle

2016-09-29 Thread Lorenz
Anton Shepelev wrote:
>We  are migrating to SVN from the dreaded SourceSafe
>and should like to retain, if only at the start, the
>exclusive  check-out  process,  with  the  following
>*atomic* operations which  should  be  performed  as
>easily as possible:
>
>  1.  lock and update,
>  lest  one  might accidentally start editing an
>  old version of some file.
>[...]

"svn lock" will fail if your working copy is not up to date.

So using svn:needs-lock and an editor that prevents you from modifying
read-only files should do the job.
-- 

Lorenz



Re: svn switch, touches files with svn:keywords

2016-09-29 Thread Lorenz
Daniel Shahaf wrote:
>Nico Kadel-Garcia wrote on Tue, Sep 27, 2016 at 19:44:07 -0400:
>> If you switch the upstream repo for a software source repo, recompile.
>> It's the best way to make sure you've not left some datestamped file
>> inconsistencies that could mess with the system.
>
>Subversion supports both the "recompile from scratch after switch"
>workflow and the "recompile minimally after switch" workflow.  You don't
>have to use the latter if you don't like it.

Could you please elaborate a bit on this?

I assume you refere to the "use-commit-times" config option?
-- 

Lorenz



discrepancies between 'svn -R list' and 'svn -R propget' (on windows using TSVN build command line client)

2016-11-16 Thread Lorenz
Hi all,

navigating to a working copy folder (or a subfolder thereof) and
issuing 'svn -R list path/sub' or 'svn -R list path\sub' results in:

file1
subsub/file2
...


whereas  'svn -R pg svn:keywords path/sub'
or 'svn -R pg svn:keywords  path\sub' results in:

sub\file1 - Id URL
sub\subsub\file2 - Id URL
...


There are two discrepancies the first of which looks like it is not
windos depended:

'svn propget' always lists the 'sub' part of the path,
'svn list' does not.

is this the same under linux, and if so is it intended behaviour?



The second one is windows dependent (maybe even TSVN specific):

'svn list' uses '/' whereas 'svn pg' uses '\'

do all native windows clients behave this way or is this with the TSVN
client only?


I'm on win7 using the command line client that ships with tortoise svn
(TSVN 1.9.4  linked against  svn 1.9.4)
-- 

Lorenz



Re: discrepancies between 'svn -R list' and 'svn -R propget' (on windows using TSVN build command line client)

2016-11-16 Thread Lorenz
Bert Huijben wrote:
>[...]
>The difference is that 'svn ls' is really a repository operation, working on
>URLS (or part of urls). On URLs we always use the url / platform independent
>'/' separator.
>
>'svn propget' usually works on local paths, in which case we use the local
>path (or technically 'dirent') separator, which is a '\' on Windows.
>
>This behavior was explicitly implemented this way years ago.
>[...]

ok, that explains the slash mystery 8-)



but what about the leading subpath vs. no subpath difference?

svn -R ls path/subpath

file1
subsubpath/file2
...

vs.

svn -R pg svn:keywords path/subpath

subpath/file1 - ...
subpath/subsubpath/file2
...
-- 

Lorenz



svn --recursive and externals

2016-11-16 Thread Lorenz
Hi all,

looks like "svn --recursive ..." ignors externals.

Is this intended?

I don't seem to be able to find any documentation about the it.
Either there is none, or my seach skills are lacking badly.
-- 

Lorenz



Re: svn --recursive and externals

2016-11-16 Thread Lorenz
Stefan Sperling wrote:
>On Wed, Nov 16, 2016 at 02:22:53PM +0000, Lorenz wrote:
>> looks like "svn --recursive ..." ignors externals.
>> 
>> Is this intended?
>
>Look for --ignore-externals or --include-externals options in the
>output of 'svn help SUBCOMMAND', where SUBCOMMAND is whichever
>svn command you're trying to use.
>
>Some subcommands recurse into externals by default, and some don't.
>The decision about which should be the default usually involves tradeoffs
>between several use cases so there is no single rule for this.
>
>> I don't seem to be able to find any documentation about the it.
>> Either there is none, or my seach skills are lacking badly.
>
>There is some information in the book about this at
>http://svnbook.red-bean.com/nightly/en/svn.advanced.externals.html
>
>And of course in 'svn help'.

Ah well, 'svn help list' shows '--include-externals' as an option, but
thats the only hint it does not recurse into externals by default.

'svn help pg' on the other hand doen't gives not infomation about
externals at all, and it rejects '--include-externals'.
So no recursing into externals with 'svn propget' at all 8-(
-- 

Lorenz



Re: discrepancies between 'svn -R list' and 'svn -R propget' (on windows using TSVN build command line client)

2016-11-17 Thread Lorenz
Bert Huijben wrote:
>> -Original Message-
>> From: Lorenz [mailto:loren...@yahoo.com]
>> Sent: woensdag 16 november 2016 15:02
>> To: users@subversion.apache.org
>> Subject: Re: discrepancies between 'svn -R list' and 'svn -R propget' (on
>> windows using TSVN build command line client)
>>[...] 
>> but what about the leading subpath vs. no subpath difference?
>> 
>> svn -R ls path/subpath
>> 
>>  file1
>>  subsubpath/file2
>>  ...
>
>I don't think this was designed behavior... But it follows from the previous
>answer: we just return the items relative from the url that you listed. 
>There is no easy way to do this differently as local paths might not match
>remote paths, like when you have switched paths. 
>
>So when we would show 'path/subpath/subsubpath/file2', it might be a
>completely different result than the local relative path with the same name.
>
>> 
>> vs.
>> 
>> svn -R pg svn:keywords path/subpath
>> 
>>  subpath/file1 - ...
>>  subpath/subsubpath/file2
>>  ...
>
>And in this case we try to return the paths exactly in the form that you
>used on the commandline, to allow you to match the result of multiple
>arguments with multiple locations.
>(Internally we convert to the absolute path and then back on output these
>days, but we used to process everything in the original form before
>Subversion 1.7)
>
>If you don't pass something like @rev or -r REV (or a URL instead of a
>path), this will always match your local files.
>
>
>Note that in both cases we recommend using --xml if you are going to parse
>the output via tools as that has a more stable output format in case we add
>new features in new releases.


after some more experimenting it looks to me that:

'svn list' always returns paths relative to the given folder,
independent if its given as a local path or as an URL.

That even makes sense 8-) because it's always the repositry contents
that is listed (as 'svn help list' tells in the first sentence)

That also means 'svn list' won't show locally added files, but still
list locally deleted files.


'svn propget' on the other hand returns paths relative to the CWD in
case of a local path, or in case of an URL the complete URL.

And it's showing local information in case of a local path, but
repository information in case of an URL. I think 'svn help
propget/list' should make that clear.



All in all, there goes my idea of how to determine files missing
certain properties. I'll open a new thread for that then.
-- 

Lorenz



how to determine files missing certain propertiers?

2016-11-17 Thread Lorenz
Hi all,

I'm trying to find files missing certain properties either locally in
a WC, or remotely in a repository.

I've experimented with scripting 'svn list' and 'svn propget' but that
didn't work out because of my missunderstanding of what this commands
really do (see threads "discrepancies between 'svn -R list' and 'svn
-R propget'" and "svn --recursive  and externals").

So, anyone out there with solutions/hints/links?
-- 

Lorenz



Re: Individual file merge . Merging a newly added file

2017-08-01 Thread Lorenz
JP wrote:
>I am trying to merge a newly added file  . I am getting the following 
>error .
>
>|svn merge -c123 https://my.svn.domain/svn/foo/branches/bar/newfile.txt 
>./newfile.txt
>svn: E29: Merge target './newfile.txt' does not exist in the working copy
>
>https://my.svn.domain/svn/foo/branches/bar/newfile.txt is in status "A" 
>.  How can I do such merges .


adding a file is a change to the parent directory.
-- 

Lorenz



Re: Individual file merge . Merging a newly added file

2017-08-02 Thread Lorenz
Andrew Reedick wrote:
>> -Original Message-
>> From: Lorenz [mailto:loren...@yahoo.com] 
>> Sent: Wednesday, August 2, 2017 1:34 AM
>> To: users@subversion.apache.org
>> Subject: Re: Individual file merge . Merging a newly added file
>>
>> JP wrote:
>> >
>>>I am trying to merge a newly added file  . I am getting the following 
>>>error .
>>>
>>>|svn merge -c123 https://my.svn.domain/svn/foo/branches/bar/newfile.txt 
>>>./newfile.txt
>>>svn: E29: Merge target './newfile.txt' does not exist in the working copy
>>>
>>>https://my.svn.domain/svn/foo/branches/bar/newfile.txt is in status "A" 
>>>.  How can I do such merges .
>>
>> adding a file is a change to the parent directory.
>
>Translation:  The newly added newfile.txt is completely unrelated to the 
>previously existing newfile.txt you are merging from.
>
>Either 
>a) Remove the newly added newfile.txt and instead do a 'svn copy ...' of the 
>previously existing newfile.txt to the new location.  This preserves ancestry 
>and makes merging easier.
>Or
>b) If the newly added newfile.txt really should be completely 
>independent/unrelated to the previously existing newfile.txt, then you will 
>need to use a "2-URL merge" to merge the previously existing newfile.txt into 
>the newly added newfile.txt.  Refer to "svn help merge".
>
>
>From "svn help merge":
>  3. This form is called a '2-URL merge':
>...
>The target branch may be the same as one or both sources, or different again.
> The three branches involved can be completely unrelated.

that's not the OPs scenario (I think)

OP added a file on a branch and then wants to cherry-pick-merge the
addition to trunk (or a different branch).

But you can only merge changes of a file to a already existing target.

That is he needs to merge the addition of the file on the parent
folder level.
-- 

Lorenz



Re: 'svn ls' not showing the contents of the repository

2017-11-29 Thread Lorenz
Daniel Shahaf wrote:
>Anton Shepelev wrote on Wed, 29 Nov 2017 20:18 +0300:
>> Why can 'svn ls' show different results when invoked from
>> two working copies of the same repository?
>
>Probably because the working copy's BASE revision is different.  'svn ls'
>runs 'svn ls .@BASE' by default.  If you pass an explicit revision
>you'll get identical output: 'svn ls -r HEAD'.

Then perhaps this fact should be mentioned in the BOOK and "svn help
ls".

"The default TARGET is “.”, meaning the repository URL of the current
working copy directory."

vs. 

"The default TARGET is “.@BASE”, meaning the repository URL of the
current working copy directory at the time of checkout or last
update."


Lorenz



Re: Combining files from different projects into a new project?

2017-12-26 Thread Lorenz
Ryan Schmidt wrote:
>On Dec 26, 2017, at 02:00, Bo Berglund wrote:
>
>> In an earlier thread I asked about how I could simulate this in svn
>> and to use the "svn externals" system was adviced.
>> 
>> When I am now facing actually doing this I find that (unless I am
>> mistaken) the externals only reference whole directories, which is not
>> what I want. I need individual files from a couple of source
>> directories containing commonly used files in every such project.
>> 
>> Is it actually possible to do this in Subversion?
>
>Yes, file externals are possible in Subversion 1.6 and later.
>
>http://svnbook.red-bean.com/en/1.7/svn.advanced.externals.html


but not accross different repositories

from: http://svnbook.red-bean.com/en/1.7/svn.advanced.externals.html
>File externals cannot refer to files from other repositories. A file 
>external's URL must always be in the same repository as the URL that 
>the file external will be inserted into.
-- 

Lorenz



change attribute visibility in board from command line/skript/ulp (eagle 6.6)

2018-11-02 Thread Lorenz
Hi all,

I've defined attributes on parts in the schematic editor.

Now I'm trying to show them in the layout running an ULP on the
grouped parts in the board editor or from the contex menu.

Without success so far. There seems to be no way to change attribute
visibility in the board editor, besides using the attribute dialog.

Anyone out there with an idea?
-- 

Lorenz



Re: change attribute visibility in board from command line/skript/ulp (eagle 6.6)

2018-11-04 Thread Lorenz
Stefan Sperling wrote:

>On Fri, Nov 02, 2018 at 02:30:17PM +0000, Lorenz wrote:
>> Hi all,
>> 
>> I've defined attributes on parts in the schematic editor.
>> 
>> Now I'm trying to show them in the layout running an ULP on the
>> grouped parts in the board editor or from the contex menu.
>> 
>> Without success so far. There seems to be no way to change attribute
>> visibility in the board editor, besides using the attribute dialog.
>> 
>> Anyone out there with an idea?
>> -- 
>> 
>> Lorenz
>
>This is the Apache Subversion users mailing list.
>
>Are you sure you're posting to the correct list?

No, I'm definitely sure this is the wrong list.
Sorry for the noice.
-- 

Lorenz



Re: Importing from a working copy ... bad idea?

2019-04-17 Thread Lorenz
Mun Johl wrote:
>We're using SVN version 1.8.19 on Red Hat Enterprise Linux 6.8 .
>
>For a new project we are about to undertake, I need to create a new
>directory in our repository (let's call it ^/trunk/new_project).
>However, most of the directories/files in the "new_project" directory
>will come from other areas of the same repository that are being
>consolidated into a new directory.
>
>I was thinking of creating this new directory structure and then doing
>an 'svn import'.  However, that will result in the loss of the existing
>logs, right?
>
>If I want to maintain the logs of the leveraged files, is my only
>recourse to use 'svn copy' to get all of the leveraged files into
>"new_project"?  Unfortunately, that will add a lot of complexity for the
>100's of files that will need to reside under ^/trunk/new_project.

svn copy sounds like the way to go.

Your concern regarding complecety: is this about the clutter the many
separate copies will create in the log?

In this case you can either checkout all relevant paths and do the
copying int the working copy, or you could use svnmucc (subversions
'multi URL command client') and script the whole process into one
commit.
-- 

Lorenz



Re: Viewing the woking copy of a lock

2019-08-20 Thread Lorenz
Anton Shepelev wrote:
>How  can  I  view the working-copy path with which a
>lock is associated, given the information about  the
>lock from `svnadmin lslocks'?

you can't.
 The server knows nothing about the working copy and its location,
only about the user.

If you know the working copy, you could run "svn info" on all
occurences of the file, to identify the working copy.
-- 

Lorenz



Re: Svn client configuration file

2019-09-18 Thread Lorenz
Branko ?ibej wrote:
>On 18.09.2019 03:48, William Muriithi wrote:
>>[...]
>> Would 1.9.7 clients qualify as a recent client?
>>
>For auto-props in the repository, yes, they were introduced in 1.8:
>[...]

on the other hand: the current version is 1.12.2

and the latest version in the 1.9 series is 1.9.12
-- 

Lorenz



Re: Server side copy, will history be copied too?

2019-09-29 Thread Lorenz
Nathan Hartman wrote:

>On Fri, Sep 27, 2019 at 12:51 PM Bo Berglund  wrote:
>>
>> I need to create a project in the repository where I will use files that 
>> have been worked on in different test projects. All projects are part of the 
>> same repository.
>>
>> So in the new project I will have both new files and files from two existing 
>> projects within the repository.
>> I know I could export the existing files into a directory on the client and 
>> collect the
>> old and new files here and then create the new project from this directory.
>> But then there is no history available for the old files preceding the 
>> current time...
>>
>> I wonder if I will get the history along with the files if I make a server 
>> side copy:
>>
>> svn cp /filename /filename
>>
>>
>>
>> Best Regards,
>>
>> Bo Berglund
>
>Short answer: Yes.
>
>Long answer: A server side copy is the same mechanism you use to make
>branches and tags. Subversion doesn't really care about the reason for
>the copy; it automatically follows the line of history, for example if
>you later do 'svn log filename' (unless you use the --stop-on-copy
>argument to svn log).

if you want to reduce the number of commits (1 per file copy) when
doing the copying as you show above, you can also collect your files
in a working copy and commit only once.
Or you can use svnmucc get the same result but avoid the working copy.
-- 

Lorenz



Re: "hook" "conf" "db" "lock" folders are showing under SVN physical project repository instead of actually project files

2020-01-27 Thread Lorenz
salman younus wrote:

>Hi,
>
>Our actual project structure / files are not available under SVN server 
>physical storage directory. E.g. following is our project folder structure:
>
>MainFolder then Folder A and Folder B. Under Folder A we have 10 files e.g. 
>file 1, 2, 3 ... 
>
>But when we check under SVN server physical directory, we are unable to find 
>our project folder structure / files and system is showing "conf" "db" "hooks" 
>"locks" folders.

the files the subversion server is managing constitute a database, not
a direct mirror of your project folder structure.
-- 

Lorenz



Re: Why does acessing logs using "-r HEAD" doesn't provide results?

2020-05-19 Thread Lorenz
Thorsten Schöning wrote:

>Hi all,
>
>I'm having trouble understanding a problem with comparing paths in
>WebSVN: Comparing two paths uses HEAD as revision specifier by default
>and works in one setup and doesn't in another. The root cause is that
>accessing the history of the repo simply doesn't provide any results
>when used like the following:
>
>> C:\[...]>svn log -r HEAD C:\[...]\trunk --xml --limit 1
>> 
>> 
>> 
>
>Using the concrete revision number the working copy is in or some
>different keyword works:
>
>> C:\[...]>svn log -r COMMITTED C:\[...]\trunk --xml --limit 1
>> 
>> 
>> >revision="667">
>[...]
>> 
>> 
>
>So why does HEAD doesn't provide any details? Thanks!

though Daniel mentions it already in the first third of his first
sentence, I wanted to point out the most likely reason more
explicitly:

Because --limit relates to overall  repository revisions, not path
relates revisions:

You first example looks exactly for the HEAD revision of the
repository. If you path was not touched by this revision, there is no
log regarding this path and revision to return.

Your second example on the other hand explicitly asks for the log
message of the last revision the given path was touched.
-- 

Lorenz



Re: Why does acessing logs using "-r HEAD" doesn't provide results?

2020-05-20 Thread Lorenz
Daniel Shahaf wrote:

>Lorenz wrote on Tue, 19 May 2020 05:22 +:
>> Thorsten Schöning wrote:
>> >So why does HEAD doesn't provide any details? Thanks!  
>> 
>> though Daniel mentions it already in the first third of his first
>> sentence, I wanted to point out the most likely reason more
>> explicitly:
>> 
>> Because --limit relates to overall  repository revisions, not path
>> relates revisions:
>
>--limit doesn't work the way you say.  If you run «svn log --limit=50
>TARGET» and TARGET has been touched by at least 50 commits, you'll get
>50 entries in the output, regardless of whether those 50 revisions were
>consecutive or not.  In particular, «svn log -rHEAD:0 -l1» will _always_
>print something.

jep, I got thrown off by "svn -rHEAD log" really meaning "give me the
log for HEAD", not "start showing logs from HEAD".

So using --limit with log for any single revision is superfluous.
-- 

Lorenz



Re: How to recover from a failed update/merge?

2020-08-10 Thread Lorenz
clean, nw check out
or revert + update
-- 

Lorenz


Bo Berglund wrote:

>I have this multi-platform app in SVN thet I started in Windows but
>lately have worked on in Linux.
>The correct latest version is from Linux and I wanted to verify it on
>Windows.
>
>Everything is committed from Linux and the revision there is the
>current one.
>
>Now I made a mistake in Windows and don't know how to get out of it...
>I had started the IDE and when checking the code I realized it was not
>current, but the fact that I checked modified local files.
>
>Next mistake, I went to the command line and did an svn up to get the
>latest versions forgetting the IDE was still running, so it now
>intervened and tried to be clever about the changing files.
>
>Meanwhile svn started to offer some merge suggestions which I had
>never done before and after a while I had this mess
>
>
>So now I need to get a clean slate on the source dir in Windows, i.e I
>want to get the *repository revision* of all files in the source dir
>and not bother with bogus changes made in the messup.
>
>How should I proceed to get the wc in a state like after the last
>successful update so it can now be updated to the repository head
>revision?



Re: How to Prevent SVN commits if the Valid number is not entered

2021-03-09 Thread Lorenz
Nico Kadel-Garcia wrote:

>He's asking for a "pre-commit" hook. Piping little wrappers into your
>local environment doesn't scale, doesn't automate, doesn't prevent
>someone else using "TortoiseSVN" from overriding the desired filter,
>etc., etc.
>
>There are many Google accessible answers, but perhaps our hero can
>start with a classic example at
>https://stackoverflow.com/questions/16751653/unable-to-generate-output-from-svn-pre-commit-hook
>.

why do you assume the OT is asking for a client (TSVN) side hook?

To me his batch script looks like a server side pre-commit hook
-- 

Lorenz



Re: How to Prevent SVN commits if the Valid number is not entered

2021-03-10 Thread Lorenz
Phani Teja wrote:
>Hello i need help regarding SVN , how can i prevent if people do not enter
>with Letter DE followed by 3 or 4 number (e.g DE123 or DE1234) in svn log
>message while doing commit.below is the configurating i have in my
>pre-commit bat file.Any help or lead would be highly appreciated.
>
>@echo off
>::
>:: Stops commits that have empty log messages and include DE #
>::
>
>setlocal
>
>rem Subversion sends through the path to the repository and transaction id
>set REPOS=%1
>set TXN=%2
>
>rem check for an empty log message
>svnlook log %REPOS% -t %TXN% | findstr . > null
>if %errorlevel% gtr 0 (goto err) else exit 0
>
>:err
>echo. 1>&2
>echo Your commit has been blocked because you didn't give any log message
>1>&2
>echo Please write a log message describing the changes to the defect and
>1>&2
>echo then try committing again. -- Thank you 1>&2
>exit 1

What exactly are you asking for?
At first glance your script looks ok to me, only the findstr regex
seems to be missing.
-- 

Lorenz



Re: SVN: PCSWMM Use

2021-10-07 Thread Lorenz
Mark Phippard wrote:

>On Wed, Oct 6, 2021 at 1:26 PM Jason Kimmet 
>wrote:
>
>> What do you recommend as the easiest subversion for experimental purposes?
>>
>>
>If you are on Windows, install TortoiseSVN. Create a repository somewhere
>on your local disk and access it via file:// protocol. If all goes well
>then you just need to install a server somewhere that you probably would
>access via https://
>
>If you have never used SVN then the first 2 chapters of the SVN Book are
>highly recommended as an introduction.
>
>https://svnbook.red-bean.com/en/1.7/index.html

Tortoise SVN comes with a very good online help.
The first chapters are very similar to the SVN book.


>The book uses the command line client for everything as opposed to the
>TortoiseSVN GUI, but that is the best way to learn. TSVN can install the
>command line client as part of its installer.
>
>If you are on MacOS os Linux, then just install the command line client and
>try that ... again using a local repository and file:// protocol.
>
>Mark
-- 

Lorenz



Re: Recursively correct moved External repository paths (that no longer exist) in the current SVN Repository

2021-10-20 Thread Lorenz
please do not change ther topic mid thread (without even changing the
subject)

Raeev Arora wrote:
>[...]
>I am unable to fetch an old version / revision (806) from a branch that had
>been recently deleted. There are two old external links that point to two
>deleted repositories.

the description is unclear.

What does not work exactly?

1) Fetching an old revision from a deleted branch?

2) Fetching the externals from the deleted repositiories?

Please state the exact error message, the OS, the svn-client and
version you are using.


Assuming 1) to check out from a deleted branch, you need to use a
"peg" revision.

svn co URL@806 

to point the client to a revision where the branch still exist
-- 

Lorenz



Re: Permission to translate your page at http://svnbook.red-bean.com/

2013-03-21 Thread Lorenz
Anja Skrba wrote:
>I am writing to inquire regarding your web page about version control 
>with subversion where I have found a lot of useful information. My name 
>is Anja and I'm currently studying at the Faculty of Computer Science in 
>Belgrade.
>Here is the URL of your article: 
>http://svnbook.red-bean.com/en/1.7/svn-book.html
>
>I would like to share it with the people from Former Yugoslav Republics: 
>Serbia, Montenegro, Croatia, Slovenia, Macedonia, Bosnia and Herzegovina.
>
>I would be grateful if you could allow me to translate your writing into 
>Serbo-Croatian language, that is used in all Former Yugoslav Republics 
>and to post it on my website. Hopefully, it will help our people to 
>gather some additional knowledge about computing.

you'd better ask this question on the book mailing list 

svnbook-...@red-bean.com
-- 

Lorenz



Re: Files on trunk overwritten...

2013-04-25 Thread Lorenz
C M wrote:
>Some files were committed to trunk which have incorrect updates.
>
>What's the easiest way to roll back to the previous versions (before the
>erroneous changes were committed)?

another way is to delete the trunk and reestablish it by copying the
last correct trunk revision.

This way a log of trunk head won't show the intermediate (between the
revision of the copy source ad the copy itself)  commits to trunk.
Only the copy of the earlier revision will show up.
   
---x---  ---y  z--- ...
\ /
 -

If there was only one objectionable commit I would go with the reverse
merge though.
-- 

Lorenz



Re: Tortoise SVN Issue Noticed

2013-04-28 Thread Lorenz
Ajay Pawar wrote:
>Scenario #1 :
>
>1. I delete a file(in this case ETools Weekly Presentation_09-Apr-2013.xls 
>Size 540 KB)  from my machine and then Click on 'SVN Update'.
>
>2. After some time, the file gets restored/updated back from the server and 
>the following status is seen on the Client.
>
>3. Error : Notice the statement '2 kBytes transferred in 0 min 38 second' . 
>The file restored was 538 Kb. Then why does the client show this incorrect 
>information.

the file most likely gets restored from the local copy in .svn


>Scenario # 2 :
>
>1. I had a new excel Sheet Created of size 1496 kb. Then right click and slect 
>'Add'. Then right Click and Select 'SVN Commit.
>
>2. After some time, the client shows '583 kBytes transferred in >>>" . But why 
>does the client report a size which does not seem to match the transaction.

transmissions are compressed
-- 

Lorenz



Re: please unsubscribe me from the list

2013-06-19 Thread Lorenz
Alexander Ivanenko wrote:

> Please unsubscribe me from the list, unsubscribe-us...@subversion.apache.org 
> seems not to work!

you got the email adress wrong, look in the eMail headers for the
correct spelling.
-- 

Lorenz



Re: Change all existing static externals in tags from operative to peg?

2013-09-19 Thread Lorenz
Axel S wrote:
>We have some shared libraries, and these are referenced as static 
>externals in all tagged versions of our different projects.
>
>After reorganizing the directory structure of our shared libraries, I 
>see that all tagged versions now gives an error. I realised that the 
>externals should have been referenced by using peg revision (@X) instead 
>of operative revision (-r X).
>
>We have hundreds of tagged versions, and inside these there are 
>two-three different external references.
>
>How can I recursively change the external definitions from operative to 
>peg in my tags directories? I imagine I will need some sort of shell 
>script to do the job, preferably without checking out the whole repo...

you can use:

svn propget svn:externals -R repoURL

to get all external definitions.

>From this data you can build a svnmucc control file to apply the
changes in one commit.
-- 

Lorenz



Re: Change all existing static externals in tags from operative to peg?

2013-09-19 Thread Lorenz
Andreas Krey wrote:
>On Thu, 19 Sep 2013 08:36:19 +0000, Lorenz wrote:
>...
>> you can use:
>> 
>>  svn propget svn:externals -R repoURL
>> 
>> to get all external definitions.
>
>Does that actually work again on big repositories?
>It used not to, and just omit some.

don't know, never tried it.

But I can't remember anyone posting about a problem either
-- 

Lorenz



Re: Preserve timestamps while creating tag with SVN copy

2013-10-28 Thread Lorenz
Steve Cohen wrote:
>I would like to be able to create a tag using the SVN copy command so 
>that the timestamps on the files in the destination are the same as 
>those in the source.

there are no individual timestamps on files in the repository, only
one timestamp on the revision as a whole.

If you are talking about the timestamp of the commit / tag though ...

That  can easyly be changed to match the tag source using "svn propset
svn:date --revprop -r   ".

Be aware that the "svn -r {date} ..." syntax will no longer  work
properly if you do so (because it relies on the revision timestamps to
be ordered).

And you will need a pre-revprop-change hook to allows revprop changes.
-- 

Lorenz



Re: define files structure in svn (CAD PDM)

2014-02-04 Thread Lorenz
Roberto Bartola wrote:

>Hi all,
>I'm trying to use svn as a PDM for CAD files.
>
>( http://en.wikipedia.org/wiki/Product_data_management )
>
>It looks working fine but I'd like to do better.
>
>-1 structure
>In my CAD I can create an assembly which is a file where I assembly many
>parts or subassemblies.
>Is it possible to create a structure (it could be a txt file) where svn
>reads the parts which belongs to the assembly, so to commit, update, lock
> the files linked to the "father"?
>[...]

>-2 folders
>To keep ordered my repository I'd like to keep a folders structure (for
>example steel-parts; plastic-parts; rubber-parts ) but when inporting
>the project I'd like to keep the files all in a single level.
>Is it possible?
[...]

have a look at file externals
-- 

Lorenz



Re: How to switch, or update, a file that exists only in a brnch ?

2014-11-26 Thread Lorenz
Kerry, Richard wrote:
>I have a couple of files that exist only in a branch which I’d like to 
>have within my Working Copy. [...]

have you considered "file externals"
-- 

Lorenz



Re: How to delete fiiles on the server that were accidentally part of an import?

2024-09-23 Thread Lorenz via users
Bo Berglund wrote:

>I used the following command to import a folder with files into Subversion
>without having to create a checked out copy of the new server side folder.
>All of this on a single line in Windows cmd:
>
>
>svn import LocalFolderName
>https://oursvnservername/svn/pc/Name_of_project/tags/Name_of_project_6-3-3 -m
>"Importing Name_of_project 6.3.3 for use when building the installers"
>
>After it completed I discovered that a few files that were *not* part of the
>project to import were accidentally present in the local source folder...
>
>So now I wonder how I can delete these files *on the server* without first
>checking out the project and svn remove them?
>
>Is there a corresponding server side delete that does not require a local copy
>first?
>
>In the SvnBook I found this example, which I do not really understand:
>
>Deleting a URL, however, is immediate, so you have to supply a log message:
>
>$ svn delete -m "Deleting file 'yourfile'" \
> file:///var/svn/repos/test/yourfile
>
>Committed revision 15.
>
>
>I don't understand how the syntax should be especially the use of the 
>backslash.
>Why is that there?
>
>And my server target is *not* a file: rather it is an https URL as shown above
>in my import command.
>
>Please explain.

- regarding repo access URLs:
https://svnbook.red-bean.com/nightly/en/svn.basic.in-action.html#svn.basic.in-action.wc.tbl-1

- are you aware that svn delete removes its target from HEAD revision?
The file/folder will still be in the repo and accessable going back in
history.
-- 

Lorenz



Re: Is it possible to export multiple files in one command?

2023-01-26 Thread Lorenz via users
Daniel Sahlberg wrote:

>Den lör 21 jan. 2023 kl 10:31 skrev Bo Berglund :
>
>> I have a script, which is used in our installer creation process and it
>> works as follows (on Windows):
>
> [...]
>
>I believe you can do this using the svn:externals property. I have the
>following repository layout
>[...]
>
>Of course this means that you now have two places to maintain your build
>scripts; both the actual script do to the build process and the
>svn:externals property. [...]

depends ...

you could maintain the folder with the svn:external definitions as
part of the source tree and modify the build process to work of this
folder (without the need to modify the build process)
-- 

Lorenz



Re: calling svnsync synchronize

2023-06-27 Thread Lorenz via users
Steudel, Philipp wrote:

>Hi support,
>
>calling svnsync synchronize now ends in attached dump.
>First I got a message like "Failed to load module for FS type 'bdb' tortoise" 
>or like
>
>svnsync: E170013: Unable to connect to a repository at URL 'file:///...'
>svnsync: E180001: Unable to open repository 'file:///...'
>svnsync: E160043: Expected FS format between '1' and '7'; found format '8'
>[...]

looking at the commit logs of at
https://svn.osdn.net/svnroot/tortoisesvn/trunk TSVN drop BDB support
with 1.6

is ist the source or the synced to repo that svnsync is complaining
above?
-- 

Lorenz



Re: Is there a write opposite to "svn cat"?

2023-11-26 Thread Lorenz via users
try svnmucc put -- - url
-- 

Lorenz


Graham Leggett via users wrote:

>On 25 Nov 2023, at 13:40, Pavel Lyalyakin  
>wrote:
>
>> `svnmucc put` perhaps?
>> https://svnbook.red-bean.com/en/1.8/svn.ref.svnmucc.re.html
>
>From reading the manual it looks perfect, but I’m having no luck:
>
>[root@seawitch postgres]# cat db.sql | svnmucc put - 
>file:///var/lib/svn/db/db.sql
>svnmucc: invalid option: 
>Type 'svnmucc --help' for usage.
>
>Alas the error message mentions an invalid option, but doesn’t say which 
>option, or why it is invalid.
>
>Regards,
>Graham
>—



  1   2   >