D1522: Update hg githelp apply

gabrys (Piotr Gabryjeluk) phabricator at mercurial-scm.org
Mon Nov 27 19:02:32 UTC 2017


gabrys created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  Current:
  
  $ hg githelp apply abc.diff
  hg import abc.diff
  
  Expected:
  
  $ hg githelp apply abc.diff
  hg import --no-commit abc.diff
  
  git apply doesn't commit the applied diff, hg import (without the flag) does.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D1522

AFFECTED FILES
  hgext3rd/githelp.py

CHANGE DETAILS

diff --git a/hgext3rd/githelp.py b/hgext3rd/githelp.py
--- a/hgext3rd/githelp.py
+++ b/hgext3rd/githelp.py
@@ -201,7 +201,7 @@
     ]
     args, opts = parseoptions(ui, cmdoptions, args)
 
-    cmd = Command('import')
+    cmd = Command('import --no-commit')
     if (opts.get('p')):
         cmd['-p'] = opts.get('p')
     cmd.extend(args)



To: gabrys, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list