git

git and svn handle copy differently

As a sanity check, there are several diffs to compare devgit.freshports.org with dev.freshports.org and sometimes they detect a false positive. Case in point, a recent commit to Code_Aster: https://svnweb.freebsd.org/ports?view=revision&revision=556349 https://github.com/freebsd/freebsd-ports/commit/d23fb94b8640d1c9d38c3cafc69c89ed4fe11939 In the svnweb link, you will see: head/science/tfel-edf/ (Copied from head/science/tfel, r555690) It is that repo copy (i.e. svn copy) from science/tfel to science/tfel-edf which […]

git and svn handle copy differently Read More »

All quarterly commits are being saved on the master branch

In the last post, I found that many commits were to the master branch when they should have been on the quarterly branch. Now I think I see why. See this XML: If it’s quarterly, it should name the branch. Case in point: 2020Q4. I went to https://lists.freebsd.org/pipermail/svn-ports-branches/2020-November/thread.html to look for known quarterly commits. Hmm,

All quarterly commits are being saved on the master branch Read More »

for git commits which is better: ‘Rename A to B’ or’ Delete A; Add B’

In my recent post, my conclusion preferred Rename over Delete & Add. Now I’ve changed my mind. I looked at the code, and the database. Now I prefer Delete & Add. The database In the database, there is no way to represent the Rename action without modifying the structure of the commit_log_elements table: The change_type

for git commits which is better: ‘Rename A to B’ or’ Delete A; Add B’ Read More »

subversion vs git – in the database

I want to document some of the not-visible differences between a git commit and a subversion commit when in the database. subversion git id 808224 808303 message_id 202007091812.069IC6QK044004@repo.freebsd.org a1d2d5b40fba4186daf29b2b2e9ff2dd8b7d8039 message_date 2020-07-09 18:12:06+00 2020-07-09 18:12:06+00 message_subject svn commit: r541803 – in head/devel: . py-absl-py [null] date_added 2020-07-09 18:39:53.510006+00 2020-07-09 18:59:49.863092+00 commit_date 2020-07-09 18:12:06+00 2020-07-09 18:12:06+00 committer

subversion vs git – in the database Read More »

Manual initiation of git commit processing

This is another post in the FreshPorts-git series. Yesterday was good progress. This morning (at Sat Jul 4 13:05:10 UTC 2020) I manually initiated another import of commits from git. It looked like this: This created one XML file for each git commit. The files are dropped into the ~freshports/messages-queues/incoming directory. The freshports-git daemon (well,

Manual initiation of git commit processing Read More »

Setting up a FreeBSD ports git repo for FreshPorts usage

I’m documenting this as a go along because I’m sure I’ll be doing something that I later wish I had written down. Create the repo This creates a FreeBSD git-based port repo. echo git clone https://github.com/freebsd/freebsd-ports.git /var/db/freshports/ports-jail/var/db/repos/PORTS-head-git | sudo su -l freshports The latest local commit This tells us the hash of the latest commit

Setting up a FreeBSD ports git repo for FreshPorts usage Read More »

Scroll to Top