public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Problems with the current bzr eclass.
@ 2009-07-09 18:33 Harley Peters
  2009-07-09 18:55 ` [gentoo-dev] " Christian Faulhammer
  0 siblings, 1 reply; 12+ messages in thread
From: Harley Peters @ 2009-07-09 18:33 UTC (permalink / raw
  To: gentoo-dev

The current bzr eclass uses EBZR_FETCH_CMD="bzr checkout --lightweight"
to initially fetch the sources.
The problem with this is though it saves some time and bandwidth on the
initial fetch it actually ends up using a lot more time and bandwidth
on every update.
Ok great  I can set EBZR_FETCH_CMD="bzr checkout".
This solves the initial fetch problems.
Now when I try and update the bzr eclass function bzr_fetch() has this
bit of code in it.

# Run bzr_initial_fetch() only if the branch has not been pulled
# before or if the existing local copy is a full checkout (as did
# an older version of bzr.eclass)
if [[ ! -d ${EBZR_BRANCH_DIR} ]] ; then
	bzr_initial_fetch "${EBZR_REPO_URI}" "${EBZR_BRANCH_DIR}"
elif [[ -d "${EBZR_BRANCH_DIR}"/.bzr/repository/ ]]; then
	einfo "Re-fetching the branch to save space..."
	rm -rf "${EBZR_BRANCH_DIR}"
	bzr_initial_fetch "${EBZR_REPO_URI}" "${EBZR_BRANCH_DIR}"
else
	bzr_update "${EBZR_REPO_URI}" "${EBZR_BRANCH_DIR}"
fi

Since I did a full checkout with the EBZR_FETCH_CMD="bzr checkout"
it now deletes the entire previous checked out branch (to save disk space ?) and proceeds to fetch the entire
source again.
Why would I ever want to do that ? The whole point of bzr is to save bandwidth not disk space.
Is there a way arouund this ?




^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2009-07-20 22:37 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-09 18:33 [gentoo-dev] Problems with the current bzr eclass Harley Peters
2009-07-09 18:55 ` [gentoo-dev] " Christian Faulhammer
2009-07-09 19:02   ` Harley Peters
2009-07-09 20:16     ` Christian Faulhammer
2009-07-09 21:07       ` Harley Peters
2009-07-10  6:50         ` Christian Faulhammer
2009-07-10 11:34           ` Harley Peters
2009-07-10 11:39             ` René 'Necoro' Neumann
2009-07-14  9:37               ` Christian Faulhammer
2009-07-16  1:53                 ` harley
2009-07-20 22:37                   ` Christian Faulhammer
2009-07-13 13:38   ` Marijn Schouten (hkBst)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox