Open GoogleCodeExporter opened 9 years ago
Ok thanks I will have a look at this.
Original comment by acaudw...@gmail.com
on 6 Nov 2011 at 1:42
What version of subversion do you have?
I have SVN 1.6.17 and it seems to always include a redundant delete message for
the old file name along with any rename. My guess is they have changed this
behavior.
Cheers
Andrew
Original comment by acaudw...@gmail.com
on 7 Nov 2011 at 2:43
I just tried this on Windows with 1.7.1, this also generated delete action when
renaming.
Original comment by acaudw...@gmail.com
on 7 Nov 2011 at 6:16
I used TortoiseSVN 1.7.1 on Windows 7. Did you also rename the folder1 to
folder2, and not the file?
Original comment by m.grit...@gmail.com
on 7 Nov 2011 at 7:41
Ah k. How do you generate the log file? Do you have a second command line SVN
client installed? What version is it?
I have tried a directory rename with TortoiseSVN 1.7.1 on Windows 7 and the GUI
log does appear to show a delete of folder1 and copying from folder1 to folder2
as expected.
Original comment by acaudw...@gmail.com
on 7 Nov 2011 at 8:25
I created the log file with the command from the Wiki page:
svn log -r 1:HEAD --xml --verbose --quiet > my-project-log.xml
If you innstall TortoiseSVN there is an option in the installer to also install
the command line tools, so they are the same version.
Original comment by m.grit...@gmail.com
on 7 Nov 2011 at 8:33
I installed the TortoiseSVN command line client and ran that command. Same
result.
How are you doing the rename? Either using the context menu (TortoiseSVN ->
Rename) or 'svn rename folder1 folder2' give me the same result.
Original comment by acaudw...@gmail.com
on 7 Nov 2011 at 9:07
I did the rename using the TortoiseSVN Explorer context menu. BTW, I am using
the 64-bit Version of TortoiseSVN, but I doubt that this leads to the different
behaviour.
Original comment by m.grit...@gmail.com
on 7 Nov 2011 at 9:18
If you do 'svn copy folder1 folder2' and commit that you will get an svn log
entry like the ones you're seeing (ie an add of the new folder with a copyfrom
and no delete of the old folder).
It seems like the delete of the old folder is necessary to distinguish between
a copy and a rename so there probably isn't anything I can change in Gource to
handle this differently.
Original comment by acaudw...@gmail.com
on 7 Nov 2011 at 10:33
And do you have an idea how your context menu Rename-command differs from mine,
since you said yours produced also the delete log entries?
Original comment by m.grit...@gmail.com
on 7 Nov 2011 at 11:23
I found the difference! If I do the commit on the renamed folder2, only the
copyfrom tag appears in the log. But if I do the commit on the parent folder
instead, also the Delete tag appears. So I had not committed the entire
change. Even if I do the commit on the parent folder in a separate step
afterwards, the old folder1 correctly disappears, as can be seen in
my-project-log.xml. At least we now get consistent results.
One question remains though: Shouldn't the new folder2 appear in the graph
after the rename?
Original comment by m.grit...@gmail.com
on 7 Nov 2011 at 8:01
Attachments:
Ok thanks for clearing that up.
As per issue 31, I haven't implemented rename or copy in Gource as yet. I have
done some work on it but it's not ready yet.
I think I understand a bit better what's going on with these commands now at
least.
Thanks
Original comment by acaudw...@gmail.com
on 7 Nov 2011 at 10:44
Ok. Maybe you can take a final look at this excerpt I took from an actual
project which I attached as my-project-log.xml. In line 127
/utilities/google_appengine/markus-gritsch/applications
gets deleted, because it was renamed to
/website/web2py/applications
in line 200. One problem is, that /website/web2py/applications is added as a
file node, and not as the directory structure it was copied from. Renaming
does not yet work in Gource, so this could be expected.
But it seems that the delete from line 127 also does not work, since the graph
still shows this part of the tree. And even when
/utilities/google_appengine
gets deleted at line 298, it remains in the graph. Shouldn't this already be
working in Gource?
Original comment by m.grit...@gmail.com
on 8 Nov 2011 at 8:31
Attachments:
Hi.
Part of the problem is that log is missing the 'kind' information, so Gource
has to infer that those are directories. Apparently old SVN repositories don't
have that information
(http://old.nabble.com/Kind-information-missing-in-svn-log-xml-output-td31109154
.html).
It looks like my code to infer directories isn't working in this case, so I
will fix that.
Original comment by acaudw...@gmail.com
on 8 Nov 2011 at 8:55
Original issue reported on code.google.com by
m.grit...@gmail.com
on 5 Nov 2011 at 11:33Attachments: