Checking out all chromium versions with deps

56 views
Skip to first unread message

Mansour Alharthi

unread,
Mar 8, 2021, 2:06:37 PM3/8/21
to Chromium-dev
Hello..

We are conducting a study on the chromium browser, and my task is very simple: count the loc of all chromium versions **with deps** (linux).. yet I keep struggling with it, especially with versions older than 50:
  • Many dependencies are moved, and so their location is not up-to-date in the DEPS file.
  • The `gclient sync` command really rarely (never?) work with old versions, even if I rollback the depot_tools to respective versions.. with all sorts of errors.
  • Very old versions seem to be using svn instead of git (right?).. and most of those repos dont exist anymore on svn.
I only need to count the LOC of chromium and its dependencies, is there any simple way to do this? For example, mozilla have a "release" repo of firefox + deps, is there something similar in chromium? How about a previous study that have accurate chromium LOC we can reference?

Thanks!
Mansour.

Dirk Pranke

unread,
Mar 8, 2021, 3:17:48 PM3/8/21
to man9o...@gmail.com, Chromium-dev
Hi,

The gclient code should be fairly backwards-compatible although there was a big break when we added support for conditions and started requiring a fixed file format rather than arbitrary python code. So you'd likely need an older version of depot_tools to get rather old versions of chrome.

It is true that repositories have moved around and the oldest versions were all in subversion. I have in the past been able (with some amount of hacking) to fetch checkouts going pretty far back (I want to say back to ~M10, but maybe it was only ~M22 or so), but I had to know what I was doing, and the results of that did not get preserved anywhere public.

I do not know of a simpler way of doing what you're trying to do, nor of any prior studies that we've confirmed to be accurate. Sorry! It's something I would love to be easier, but have never had the time to clean up.

-- Dirk

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/1bbfa1e7-9e59-4495-9563-957d547bda7dn%40chromium.org.
Reply all
Reply to author
Forward
0 new messages