Mateusz Guzik
2018-05-13 02:50:35 UTC
Hi all,
I often have several variants of the same revision that I'm testing or
working on at any given time.
Index: sys/conf/newvers.sh
===================================================================
--- sys/conf/newvers.sh (revision 333575)
+++ sys/conf/newvers.sh (working copy)
@@ -203,6 +203,8 @@ if [ -n "$svnversion" ] ; then
[0-9]*[MSP]|*:*)
svn=" r${svn}"
modified=true
+ ck="$(svn diff | cksum | cut -w -f 1)"
+ svn="$svn-$ck"
;;
[0-9]*)
svn=" r${svn}"
to help differentiate.
You end up with a version that looks like: r333575M-4294967295?
Don't develop with svn. get yourself a git or hg setup and a tmp branch.I often have several variants of the same revision that I'm testing or
working on at any given time.
Index: sys/conf/newvers.sh
===================================================================
--- sys/conf/newvers.sh (revision 333575)
+++ sys/conf/newvers.sh (working copy)
@@ -203,6 +203,8 @@ if [ -n "$svnversion" ] ; then
[0-9]*[MSP]|*:*)
svn=" r${svn}"
modified=true
+ ck="$(svn diff | cksum | cut -w -f 1)"
+ svn="$svn-$ck"
;;
[0-9]*)
svn=" r${svn}"
to help differentiate.
You end up with a version that looks like: r333575M-4294967295?
The branch name is always included along with the commit hash.
The benefit is that not only know you know what the change is, you can
always refer back to it later and diff against something else.
--
Mateusz Guzik <mjguzik gmail.com>
Mateusz Guzik <mjguzik gmail.com>