Re: "svn copy --parents" allows insertion of an errant '\' in http://path

2014-05-12 Thread Tobias Bading
Umm, forgot the obvious: Did you try to rename the directory directly in the 
repository, e.g. using
svn mv -m "..." "http://svr/sandbox/A\B/bar1.c"; "http://svr/sandbox/AB/bar1.c";?

Tobias


On 07.05.2014, at 18:04, Tobias Bading wrote:
> Hi Dan,
> 
> I just tried this on OS X (using svn 1.8.0) and I'm able to create a 
> directory in the repository with a backslash in its name and delete it again.
> My guess would be that this works on other UNIXes as well. So if you have 
> access to a non-Windows machine, delete or rename the directory from that 
> machine. (Don't forget that you have to escape the backslash with a second 
> backslash for the shell.)
> 
> Tobias
> 
> 
> On 07.05.2014, at 01:25, Dan Ellis wrote:
>> Hi,
>> 
>> I pulled a silly mistake just now...  I accidentally let my windows 
>> backslash enter into an http URL during an SVN copy operation.
>> 
>> copy --parents "C:\Project_files\sandbox\bar.c" 
>> "http://svr/sandbox/A\B/bar1.c"; -m "bad commit"
>> 
>> It successfully committed.
>> 
>> svn update now returns the following:
>> 
>> svn: E155000: 'A\B' is not a valid filename in directory 
>> 'C:\Project_files\sandbox\'
>> 
>>  First, I assume there should be a check to prevent this invalid character 
>> for URLs.  Second, how do I undo my error?
>> 
>> I'm on SVN 1.8.5 and the backslash should give me away as a windows user 
>> (Win7 - 64bit).
>> 
>> Thanks for the help,
>> Dan
>> 
>> 
> 



Re: "svn copy --parents" allows insertion of an errant '\' in http://path

2014-05-12 Thread Tobias Bading
Grrr. That would have to be

svn mv -m "..." "http://svr/sandbox/A\B"; "http://svr/sandbox/AB";

of course. Sorry.


On 07.05.2014, at 18:11, Tobias Bading wrote:
> Umm, forgot the obvious: Did you try to rename the directory directly in the 
> repository, e.g. using
> svn mv -m "..." "http://svr/sandbox/A\B/bar1.c"; 
> "http://svr/sandbox/AB/bar1.c";?
> 
> Tobias



svn diff --summarize question

2014-05-12 Thread Dan Ellis
Hi,

I'm trying to diff the contents between of a local working copy file to a
file in the repository (I really just need a yes/no answer).  This file
happens to be identical in content, but they do not share the same ancestry
(unrelated nodes).

When I do a diff with no --summarize option, I get what I expect, namely no
output:

c:\Project_files\sandbox>svn diff --ignore-properties
--old="c:\project_files\sandbox_v2\.txt" --new="
http://svr/repo/foo.txt@3813";
c:\Project_files\sandbox>

When I add the --summarize argument to the command line, I get the
following:
c:\Project_files\sandbox>svn diff --ignore-properties
--old="c:\project_files\sandbox\.txt" --new="
http://svr/repo/.txt@3813"; --summarize
D   C:\project_files\sandbox\.txt
A   C:\project_files\sandbox\.txt

>From reading http://svnbook.red-bean.com/en/1.7/svn.ref.svn.c.diff.html, it
looks like the behavior I'm seeing is similar to the --notice-ancestry flag:

"By default, svn diff ignores the ancestry of files and merely compares the
contents of the two files being compared. If you use --notice-ancestry, the
ancestry of the paths in question will be taken into consideration when
comparing revisions (i.e., if you run svn diff on two files with identical
contents but different ancestry, you will see the entire contents of the
file as having been removed and added again)."

How can I get the --summarize behavior to only look at file contents?  I
fee like I might be missing something obvious.

Thanks!
Dan


[no subject]

2014-05-12 Thread Bart Beagles



Checksum in --xml for svn info

2014-05-12 Thread Dan Ellis
Hi,

Related to my other email regarding diffing a working copy file to a
potentially unrelated repository file; my real intent is to find out if two
files are different in content and really do not care about the actual
differences (the reason I want --summarize).

When performing an svn info on a local working copy, I can see the file's
checksum (sha-1 specifically), but this doesn't work on repositories.  It
would be really nice and save some bandwidth if I could simply compare
checksums versus performing a diff.  Is there support in the SVN server API
that supports this property?  If so, is there any interest from the
developers to add this xml tag?

c:\Project_files\sandbox>svn info .txt --xml



f0d19ccba8cd50a4f88c31deeb635c564fadcf5f


Thanks again,
Dan