]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Fix two common points of confusion:
authorepriestley <epriestley@javelinjs.com>
Thu, 17 Feb 2011 02:47:17 +0000 (18:47 -0800)
committerepriestley <epriestley@javelinjs.com>
Thu, 17 Feb 2011 02:47:17 +0000 (18:47 -0800)
- show "push upstream" instructions after arc amend
- parse 'diffcamp revision'

Summary:

Test Plan:

Reviewers:

CC:

src/differential/commitmessage/ArcanistDifferentialCommitMessage.php
src/workflow/amend/ArcanistAmendWorkflow.php

index 5b45084f0ec31442dddf187eebf7df5a52cb39fe..728397ca10cdaaff97e4c39f0d3bf016cd7cb5d1 100644 (file)
@@ -30,8 +30,9 @@ class ArcanistDifferentialCommitMessage {
     $obj = new ArcanistDifferentialCommitMessage();
     $obj->rawCorpus = $corpus;
 
+    // TODO: Remove "Diffcamp" backward compatibility.
     $match = null;
-    if (preg_match('/^Differential Revision:\s*D?(\d+)/m', $corpus, $match)) {
+    if (preg_match('/^(?:Differential|DiffCamp) Revision:\s*D?(\d+)/im', $corpus, $match)) {
       $obj->revisionID = (int)$match[1];
     }
 
index afa5c60516470e838f9bd2496f12505c14cb6139..a41f3b46337bf5e22294f5353b967f53453d1d92 100644 (file)
@@ -126,6 +126,10 @@ EOTEXT
       }
     }
 
+    echo phutil_console_wrap(
+      "You may now push this commit upstream, as appropriate (e.g. with ".
+      "'git push', or 'git svn dcommit', or by printing and faxing it).\n");
+
     return 0;
   }