Skip to content

Instantly share code, notes, and snippets.

@dlangille
Created January 2, 2019 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dlangille/8ac83426153265116cafbc2a1ed0aa1a to your computer and use it in GitHub Desktop.
Save dlangille/8ac83426153265116cafbc2a1ed0aa1a to your computer and use it in GitHub Desktop.
Here we have FreshPorts automagically checking out a branch it does not already have:
[dan@dev-ingress01:/usr/local/libexec/freshports] $ ls -l /var/db/freshports/ports-jail/var/db/repos
total 69
drwxr-xr-x 70 freshports freshports 83 Jun 10 2018 PORTS-2018Q1
drwxr-xr-x 70 freshports freshports 84 Apr 29 2018 PORTS-2018Q2
drwxr-xr-x 70 freshports freshports 85 Sep 25 15:57 PORTS-2018Q3
drwxr-xr-x 70 freshports freshports 85 Oct 1 10:31 PORTS-2018Q4
drwxr-xr-x 4 freshports freshports 4 Jan 2 16:01 PORTS-2019Q1
drwxr-xr-x 70 freshports freshports 85 Jan 2 03:07 PORTS-2019Q1.original
drwxr-xr-x 70 freshports freshports 85 Jan 2 10:48 PORTS-2019Q1.original.2
drwxr-xr-x 70 freshports freshports 85 Jan 2 11:15 PORTS-2019Q1.original.3
drwxr-xr-x 70 freshports freshports 85 Jan 2 13:21 PORTS-head
[dan@dev-ingress01:/usr/local/libexec/freshports] $ ps auwwx | grep svn
freshports 31110 55.4 0.1 35192 21320 - DJ 16:01 0:15.81 /usr/local/bin/svn checkout https://svn.freebsd.org/ports/branches/2019Q1 PORTS-2019Q1
dan 34527 0.0 0.0 11260 2284 2 S+J 16:02 0:00.00 grep svn
[dan@dev-ingress01:/usr/local/libexec/freshports] $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment