Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 476984 - subversion.eclass: $DISTDIR/svn-src stores two copies of files
Summary: subversion.eclass: $DISTDIR/svn-src stores two copies of files
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Akinori Hattori
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-15 22:19 UTC by Michał Górny
Modified: 2013-07-16 21:39 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-07-15 22:19:49 UTC
Subversion uses a 'pristine store' to keep unmodified copies of files from repository. However, considering that the source checkout in svn-src is intended only to be copied to workdir keeping the duplicate copies only results in twice as big checkouts.

It would be great if we were able to find a way to disable it, or use only it and disable checked out copies by default (something like git bare clone). In the worst case, I guess we can just remove files from the working copy and revert that whenever we do a checkout...
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-07-15 22:32:25 UTC
And if you were wondering, after removing all the files from working copy and doing 'svn up' svn is happily restoring them without refetching. Without network activity, they can be restored using 'svn revert -R .'.

I think we can get something reasonably sane by creating '.svn' symlink to svn-src in workdir and doing svn operations there. Then working directory will land in its place directly, and the 'pristine' files along with repo config would be stored persistently in svn-src.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-07-15 23:11:29 UTC
Ok, I've just checked and subversion tries to be smart. Therefore, it refuses to use '.svn' that is a symlink, and tries hard not to support any way of changing their stupid layout.

My last idea is to do 'svn co' and 'svn up' as usual, then move (instead of copying) all files from svn-src to workdir.
Comment 3 Arfrever Frehtes Taifersar Arahesis 2013-07-16 10:51:44 UTC
Maybe better create a patch, which adds necessary features for Subversion, send it to upstream and convince upstream to accept it, and wait for next feature release (1.9).
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-07-16 21:39:04 UTC
(In reply to Arfrever Frehtes Taifersar Arahesis from comment #3)
> Maybe better create a patch, which adds necessary features for Subversion,
> send it to upstream and convince upstream to accept it, and wait for next
> feature release (1.9).

Are you volunteering?