Skip to content

modules: embed hg information and hg diff into object file for traceability

Bitbucket Importer requested to merge bitbucket/merged-pr-230 into branch/unified

Created originally on Bitbucket by g3gg0 (Georg Hofstetter)

Was already merged in Bitbucket before import, marked as merged by the import user

this says it all :) it is useful to fully track back which revision a module really was and which changes were made locally (non-committed)

so module builds from other sources than our build-bot will include any delta since the last commit. the module size will grow a few hundred bytes (2-50 kiB is a common size for a module) that are not used in RAM, only the file size grows.

with this change, users and devs can test modules and later check on what code this module was based on.

#!shell

root@linux-dev:/media/sf_D_DRIVE/cygwin/home/g3gg0/EOS/ml-g3gg0/modules/raw_rec# ../module_hginfo_dump.sh raw_rec.mo
#-------- reading general hg information --------
default = https://bitbucket.org/g3gg0/magic-lantern
mainstream = https://bitbucket.org/hudson/magic-lantern
changeset:   8612:884a882e74ea
branch:      unified
tag:         tip
user:        g3gg0
date:        Sun Sep 08 16:31:44 2013 +0200
summary:     smpte: enabled parity again, some cleanup

#-------- reading hg diff --------
diff -r 884a882e74ea modules/raw_rec/raw_rec.c
--- a/modules/raw_rec/raw_rec.c Sun Sep 08 16:31:44 2013 +0200
+++ b/modules/raw_rec/raw_rec.c Wed Sep 11 21:59:26 2013 +0200
@@ -1,5 +1,5 @@
 /**
- * RAW recording. Similar to lv_rec, with some different internals:
+ * RAW recording (MLV format). Similar to lv_rec, with some different internals:
  *
  * - buffering strategy:
  *      - group the frames in contiguous chunks, up to 32MB, to maximize writing speed

Merge request reports

Loading