repo sync not updating like repo selfupdate?

719 views
Skip to first unread message

Brad Larson

unread,
May 1, 2009, 9:28:50 AM5/1/09
to Repo and Gerrit Discussion
We just pulled in repo 1.6.7.3, but none of my sandboxes update to it
when I run a repo sync. repo selfupdate does pull it in however. I
don't understand why repo sync doesn't see the update...

I just updated to 1.6.7.2 yesterday, is there some logic in repo which
only checks for updates periodically instead of on every sync?

Thanks!
Brad

Shawn Pearce

unread,
May 1, 2009, 10:15:15 AM5/1/09
to repo-d...@googlegroups.com

Yes, this was a change in 1.6.7 somewhere.  It now only checks once per day during "repo sync".

The rationale was, I was noticing clients were spending about 1/4 of their "repo sync" time just trying to connect over the WAN to android.git.kernel.org to check that repo was current.  If all of your projects are actually off a local server on your LAN, that's a huge penalty.

So, repo sync now only checks once per day.  repo selfupdate on the other hand checks immediately.

Brad Larson

unread,
May 1, 2009, 10:49:02 AM5/1/09
to Repo and Gerrit Discussion
That makes perfect sense, thanks for the explanation.

We host repo locally due to some proxy issues (.....), so for our use-
case, I might look at a patch to go ahead and check repo if the
repository is using the same host as the manifest. Does that sound
feasible/reasonable?

Of course, I guess it isn't that big of a deal if the users have to
use selfupdate to get the latest version a few hours earlier.

Thanks!
Brad


On May 1, 9:15 am, Shawn Pearce <s...@google.com> wrote:

Shawn Pearce

unread,
May 1, 2009, 10:55:27 AM5/1/09
to repo-d...@googlegroups.com
On Fri, May 1, 2009 at 07:49, Brad Larson <bkla...@gmail.com> wrote:

That makes perfect sense, thanks for the explanation.

We host repo locally due to some proxy issues (.....), so for our use-
case, I might look at a patch to go ahead and check repo if the
repository is using the same host as the manifest.  Does that sound
feasible/reasonable?

Yes.  I just didn't want to spend my own time writing it, I felt like I had more important stuff going on in my Gerrit bug list than this.  But if you send a reasonable patch for it, I'll include it in the next repo version.
 

Of course, I guess it isn't that big of a deal if the users have to
use selfupdate to get the latest version a few hours earlier.

That was my take on it.  But hey, if you guys want a patch, and code it up and send it to me, I'll be happy to take it!  :-)


Reply all
Reply to author
Forward
0 new messages