]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
patman: Use the full commit hash for 'git checkout'
authorSimon Glass <sjg@chromium.org>
Wed, 15 Oct 2014 08:27:00 +0000 (02:27 -0600)
committerSimon Glass <sjg@chromium.org>
Mon, 3 Nov 2014 21:12:39 +0000 (14:12 -0700)
Even with the initial 8 characeters of the hash we will sometimes get a
collision. Use the full hash.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/buildman/control.py
tools/patman/patchstream.py

index 6a4de36681943ec724f43f54934dc62f46383467..fb79a1ecfef19c8087998eb5b95d1a196a4d50e2 100644 (file)
@@ -70,7 +70,7 @@ def ShowActions(series, why_selected, boards_selected, builder, options):
     if commits:
         for upto in range(0, len(series.commits), options.step):
             commit = series.commits[upto]
-            print '   ', col.Color(col.YELLOW, commit.hash, bright=False),
+            print '   ', col.Color(col.YELLOW, commit.hash[:8], bright=False),
             print commit.subject
     print
     for arg in why_selected:
index d630157f8f70f640858a28d66e0f00b61d74e82a..da0488337b29a5fd4db542b58892a14c4e637ee9 100644 (file)
@@ -248,8 +248,7 @@ class PatchStream:
         # Detect the start of a new commit
         elif commit_match:
             self.CloseCommit()
-            # TODO: We should store the whole hash, and just display a subset
-            self.commit = commit.Commit(commit_match.group(1)[:8])
+            self.commit = commit.Commit(commit_match.group(1))
 
         # Detect tags in the commit message
         elif tag_match: