Re: fsverify.py unable to fix invalid svndiff header

2011-05-22 Thread Daniel Shahaf
Steinar Bang wrote on Sun, May 22, 2011 at 00:41:14 +0200:
> > Steinar Bang :
> 
> > Steinar Bang :
> >> I tried adding this to /svn/conf/authz:
> 
> >> [/trunk/someprog]
> >> * =
> 
> >> (everything else in the file are comments)
> [snip!]
> > So I uncommented this line in the sample svnserve.conf:
> > # authz-db = authz
> 
> > And then svnsync pulled the entire repo.  Or at least: it didn't stop at
> > revision 683.
> 
> > But the resulting repo doesn't seem to be functional:
> >  sb@edwards:~$ svn ls file:///tmp/newrepo/svn/
> >  sb@edwards:~$ svn ls file:///tmp/newrepo/svn/trunk
> >  svn: URL 'file:///tmp/newrepo/svn/trunk' non-existent in that revision
> 
> More fine print I didn't read, in:
>  http://svnbook.red-bean.com/nightly/en/svn.serverconfig.pathbasedauthz.html
> 
>   "By default, nobody has any access to the repository at all. That
>means that if you're starting with an empty file, you'll probably
>want to give at least read permission to all users at the root of the
>repository."
> 
> So now the /svn/conf/authz file contains:
> [/]
> * = r
> 
> [/trunk/someprog]
> * =
> 
> And then I'm able to see contents in the cloned repository:
>  sb@edwards:~$ svn ls file:///tmp/newrepo/svn/
>  branches/
>  tags/
>  trunk/
> 
> Thanks, Daniel!
> 

Welcome. :-)


How to display historic revisions after a delete

2011-05-22 Thread Dave Sailors
When we do a svn delete on a file, it still shows up in that revision of
the directory for a svn list -r  on the directory itself, but you
can't list that file by revision number directly. You get an error
message saying the file isn't in the the current revision of the
repository.

 

Example:

 

File
svn://srn-redhat/opt/vob/cp_vob/cp-image/trunk/sw_snmp/sw_agent/access_r
psm.c

Was deleted in revision 5148.

 

When we do a svn list we get the following error.

 

svn ls -r 5145
svn://srn-redhat/opt/vob/cp_vob/cp-image/trunk/sw_snmp/sw_agent/access_r
psm.c

svn: File not found: revision 5148, path
'/trunk/sw_snmp/sw_agent/access_rpsm.c'

 

This is also a problem with the Subversion diff command.

 

Is there something else we need to do to be able to see changes between
historic versions of files that have been deleted from the repository?

 

Thanks,

Dave

 




This E-mail message is for the sole use of the intended recipient(s) and may
contain confidential and privileged information.  Any unauthorized review, use,
disclosure or distribution is prohibited.  If you are not the intended 
recipient,
please contact the sender by reply E-mail and destroy all copies of the original
message.

Re: How to display historic revisions after a delete

2011-05-22 Thread Stefan Sperling
On Fri, May 20, 2011 at 01:59:43PM -0700, Dave Sailors wrote:
> When we do a svn delete on a file, it still shows up in that revision of
> the directory for a svn list -r  on the directory itself, but you
> can't list that file by revision number directly. You get an error
> message saying the file isn't in the the current revision of the
> repository.
> 
>  
> 
> Example:
> 
>  
> 
> File
> svn://srn-redhat/opt/vob/cp_vob/cp-image/trunk/sw_snmp/sw_agent/access_r
> psm.c
> 
> Was deleted in revision 5148.
> 
>  
> 
> When we do a svn list we get the following error.
> 
>  
> 
> svn ls -r 5145
> svn://srn-redhat/opt/vob/cp_vob/cp-image/trunk/sw_snmp/sw_agent/access_r
> psm.c
> 
> svn: File not found: revision 5148, path
> '/trunk/sw_snmp/sw_agent/access_rpsm.c'
> 
>  
> 
> This is also a problem with the Subversion diff command.
> 
>  
> 
> Is there something else we need to do to be able to see changes between
> historic versions of files that have been deleted from the repository?

Yes, you need to specify a peg revision.
See http://svnbook.red-bean.com/nightly/en/svn.advanced.pegrevs.html

Currently, the best way to find the right peg revision is to log a
known parent directory that still exists in HEAD, and search for
the deleted path in the output.


hi, need help with svn command checkout

2011-05-22 Thread Elad A
hello,

i am new to SVN.

i build a system that store revision id when a branch is ready for QA.
the developer use "ready to qa" string in his comment when commit.
there is a post commit script that collect the revision and insert it to a
DB.

the QA goes to a web page that populate the "ready to QA" projects.
after the QA choose the project he wants to check, the web page generate
install_rev.bat file for the QA to run on his machine.

until this point everything is working like it should.

my question is whats the command that should be in install_rev.bat file?

i want that the QA will start from fresh. for example if now the QA checks
for a project "mobile" revision 1000.
and he wants to check after that "mobile" revision 900.

the environment should be clean from revision 1000 files and folders and
should have only 900 files and folders.

whats the command i should use?
i cant delete the folder, fresh chcekout takes about 20 minutes.


thanks


Re: Generating SVN libraries from source on Mac OSX

2011-05-22 Thread Ian Sidor
Ok thanks to all, I have my script working correctly now.

Regards,

Ian.

On 20 May 2011, at 18:00, Blair Zajac wrote:

> 
> On May 20, 2011, at 3:40 AM, Ian Sidor wrote:
> 
>> Oops. Thank-you for pointing that out, my mistake.
>> 
>> However, I still cannot find any libsvn*.a files anywhere on the drive.
>> 
>> As described in my first mail, there is a file I can see with the extension 
>> 'LA' which is a text file. It states that the libraries will be built to 
>> /usr/local/lib but they don't seem to be there after I execute make.
> 
> You have to run make install to get them to install into /usr/local/lib.
> 
> BTW, if you're building libraries for your application, it's probably best to 
> pick a different directory than /usr/local, since it's a common dumping 
> ground.  Choose something like /opt/my_company_name/product_name.
> 
> Also, you could build with MacPorts into /opt/my_company_name/product_name 
> and then have it provide all the .a's.
> 
> Blair
> 



Re: hi, need help with svn command checkout

2011-05-22 Thread Ryan Schmidt

On May 22, 2011, at 14:36, Elad A wrote:

> i build a system that store revision id when a branch is ready for QA. 
> the developer use "ready to qa" string in his comment when commit. 
> there is a post commit script that collect the revision and insert it to a 
> DB. 
> 
> the QA goes to a web page that populate the "ready to QA" projects. 
> after the QA choose the project he wants to check, the web page generate 
> install_rev.bat file for the QA to run on his machine.
> 
> until this point everything is working like it should. 
> 
> my question is whats the command that should be in install_rev.bat file? 
> 
> i want that the QA will start from fresh. for example if now the QA checks 
> for a project "mobile" revision 1000. 
> and he wants to check after that "mobile" revision 900. 
> 
> the environment should be clean from revision 1000 files and folders and 
> should have only 900 files and folders.
> 
> whats the command i should use? 
> i cant delete the folder, fresh chcekout takes about 20 minutes.

Assuming the QA person has not made any changes in the working copy (that is, 
"svn status" returns nothing), then they can simply run "svn up -r 900".