heeyeonwiz / pbscc-proxy

Automatically exported from code.google.com/p/pbscc-proxy
0 stars 0 forks source link

Don't create subdirectories in SVN #12

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a new worspace
2. Organize the projects :
     + target1 + source + pbl1
                        + pbl2
     + target2 + source + pbl1
...

3. Add to Source Control ... in target1

What is the expected output? What do you see instead?

This is the error in log:

1.- can't copy "SVN\pbl1.pbg" (dst) to "target1\source\pbl1\pbl1.pbg" (src)

What version of the product are you using? On what operating system?

PBSCCProxy 2.00.59

Windows XP SP 4

Please provide any additional information below.

-

Original issue reported on code.google.com by juy...@gmail.com on 28 Sep 2010 at 2:21

GoogleCodeExporter commented 8 years ago
Please activate the logging and reproduce the problem.
Attach log file to the issue.

Original comment by daggett....@gmail.com on 28 Sep 2010 at 4:19

GoogleCodeExporter commented 8 years ago
Now include the log file.

Original comment by juy...@gmail.com on 29 Sep 2010 at 8:51

Attachments:

GoogleCodeExporter commented 8 years ago
The problem: you have a directory 
M:\TEMP\SVNwork\TEST\target1\fuentes\pbl1\
but it's not in repository (not committed)

you must commit it or remove it from your svn workcopy

if problem remains - attach new log file.

Original comment by daggett....@gmail.com on 29 Sep 2010 at 4:25

GoogleCodeExporter commented 8 years ago
If but at start the repository only have a root, not any directories. And it 
was created by line 207 in module pbscc.cpp:
...
if(!CreateDirectory(fpath,NULL)){
...

I think that have add:

...
if(CreateDirectory(fpath,NULL)){
    if(_execscc(ctx,"svn mkdir --non-interactive --trust-server-cert \"%s\"", fpath )  ){
...

Original comment by juy...@gmail.com on 30 Sep 2010 at 2:13

GoogleCodeExporter commented 8 years ago
at line 213
there is a code for adding this folder into svn targets file

http://code.google.com/p/pbscc-proxy/source/browse/trunk/src/pbscc.cpp#213

then at line 1031 adding targets (including subfolders) into svn
http://code.google.com/p/pbscc-proxy/source/browse/trunk/src/pbscc.cpp#1031

So, I don't see any problem, that's why asking for log file.

Original comment by daggett....@gmail.com on 30 Sep 2010 at 7:45

GoogleCodeExporter commented 8 years ago
The documentation say:

"Subversion adds are recursive! If you add a directory with Subversion, it will 
add everything in the directory as well"

If in the file pbsxxx.tmp exists:

M:\TEMP\SVNwork\TEST\target1
M:\TEMP\SVNwork\TEST\target1\fuentes
M:\TEMP\SVNwork\TEST\target1\fuentes\pbl1

the 1 line, include the 2 and 3 line .

Can you delete 213 y 214 line from pbscc.cpp and don't include directories 
inside the file of targets?.

Original comment by juy...@gmail.com on 2 Oct 2010 at 10:19

GoogleCodeExporter commented 8 years ago
i think better to add --force or --non-recursive 
param to the "svn add" command.

Original comment by daggett....@gmail.com on 2 Oct 2010 at 3:43

GoogleCodeExporter commented 8 years ago
consider as fixed
http://code.google.com/p/pbscc-proxy/downloads/detail?name=pbsccsetup_2.01.78.zi
p

Original comment by daggett....@gmail.com on 16 Oct 2010 at 6:49