Live data from Hacker News

Ask HN: Do you ever truly use your revision history?

news.ycombinator.com

191–200 of 287 posts

Re: Ask HN: Do you ever truly use your revision history?

#191

Hell yes, I use it daily. I'm in AAA gamedev and the codebase I deal with goes back 20+ years. The last 10 years are readily accessible in Perforce and the rest can be found in another version control system. I am forever grateful to past engineers for outlining WHY they made their changes, and not WHAT the changes were per se. With thousands of engineers that have come and gone, this is incredibly useful information…

> I'm in AAA gamedev and the codebase I deal with goes back 20+ years.

I'm curious what parts you work on (engine/tooling?). I've always had the impression that games usually have more throwaway code than other types of applications.

Re: Ask HN: Do you ever truly use your revision history?

#192
Yes, absolutely, every day. Revision history really is a critical part of the development and code review process. My team uses Git/GitHub and for me using diffs across previous commits and the blame representation especially for files in large pull requests gives me a tool to understand the changes better when reviewing changes on older files.

A lot of times when a developer is working on a larger change that could be adding/expanding a feature or doing some larger refactoring, they may fix or improve something loosely related to the primary changes. If the unrelated changes don't have a separate commit I will request a dedicated commit be kept to document and have separate history so we don't lose the context in the larger body of work when squashing prior to merge.

Tagging releases is another tool for tracking revision history across releases that has come in handy for diffing and viewing the state of the code more holistically than looking at files in incremental commits or individual blames.

Re: Ask HN: Do you ever truly use your revision history?

#193
post #95

Yes, yes, absolutely. I've looked at history going back 10+ years (at least). Many times. Two-year-old commits I consider to be fairly recent. I can't remember a specific reason why off the top of my head, but it was usually something to do with looking at the context around why some piece of code existed. The companies I've worked for also require commit messages to contain bug tracking IDs, which can provide furthe…

> There's also really not much of a reason to migrate from svn to git if svn is still working for your organization.

Attraction to new devs.

I'm new enough (past decade) to software development that I've only used git/mercurial, and joining a company that required using svn would give me serious pause.

Re: Ask HN: Do you ever truly use your revision history?

#194

Hell yes, I use it daily. I'm in AAA gamedev and the codebase I deal with goes back 20+ years. The last 10 years are readily accessible in Perforce and the rest can be found in another version control system. I am forever grateful to past engineers for outlining WHY they made their changes, and not WHAT the changes were per se. With thousands of engineers that have come and gone, this is incredibly useful information…

How's the AAA industry nowadays? I got out awhile ago (though HoN never really counted as AAA) but it was a fun ride at the time. Is work life balance a bit better now, or does everyone still push themselves pretty hard?

It's both better and worse than its ever been.

There's an awareness and discussion about "sustainable" development practices, but a large portion of our workforce had to leave for stress reasons last year, on a project that is saying "sustainable development" the loudest.. so while it feels like lip service, at least there's an awareness at some level.

(also, gamers are more entitled than ever, so we're always running; which causes our games to be buggy as hell which slows us down later.. horrible and completely unsustainable)

Re: Ask HN: Do you ever truly use your revision history?

#196
Like everyone here, “Yes, the history is super useful”. So, I’m curious about fixing the actual problem.

What happened in the CVS => SVN migration? You don’t have 30-years of SVN history. Do you have an SVN mirror / backup for which you can try out the git svn to try to import the codebase?

Besides, it may be 30-years worth of commits, but I’d guess it’s smaller than the LLVM SVN repo was at the time of the first git mirroring. How many commits are you talking about? (Including all branches, etc.).

Re: Ask HN: Do you ever truly use your revision history?

#198
PR descriptions/discussions, ADRs, and READMEs are often germane and useful, but the revision history itself? No, almost never. Any rationale motivating a piece of code as it exists in the repo is, in my experience, best provided as a comment in-situ with the code. Information that's in the revision history but not in that kind of comment is, in my experience, historical noise.

Re: Ask HN: Do you ever truly use your revision history?

#199
At my current company they place a huge value on that history, so much so that they haven't transitioned from SVN to git solely because of the logistical challenge of migrating 30 years of commits.

You can convert a repo from SVN to Git with history intact!

There's a tool called cvs2svn that I have used to upgrade really old CVS projects to git (it can do git too), and there is also an svn2git. And, I believe there is git-svn that provides a git interface to an svn repo.

Re: Ask HN: Do you ever truly use your revision history?

#200
I used to get irritated that peers made me jump through hoops to collapse commits into singular meaningful commits. Why bother. Nobody looks at history.

And then I started looking at history and its invaluable to have particularly when understanding rationale or debugging issues.

Post reply on HN