Patchwork D3660: graft: drop --user and --date values info from hint in case of conflicts

login
register
mail settings
Submitter phabricator
Date May 25, 2018, 9:14 p.m.
Message ID <a45518f0728f63f50f8ac8cff5cb74c5@localhost.localdomain>
Download mbox | patch
Permalink /patch/31873/
State Not Applicable
Headers show

Comments

phabricator - May 25, 2018, 9:14 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGd9572d344e59: graft: drop --user and --date values info from hint in case of conflicts (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3660?vs=8900&id=8904

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

AFFECTED FILES
  mercurial/commands.py
  tests/test-graft.t

CHANGE DETAILS




To: pulkit, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

diff --git a/tests/test-graft.t b/tests/test-graft.t
--- a/tests/test-graft.t
+++ b/tests/test-graft.t
@@ -1456,7 +1456,7 @@ 
   merging b
   warning: conflicts while merging b! (edit, then use 'hg resolve --mark')
   abort: unresolved conflicts, can't continue
-  (use 'hg resolve' and 'hg graft --continue --user batman')
+  (use 'hg resolve' and 'hg graft --continue')
   [255]
 
   $ echo wat > b
@@ -1506,7 +1506,7 @@ 
   merging b
   warning: conflicts while merging b! (edit, then use 'hg resolve --mark')
   abort: unresolved conflicts, can't continue
-  (use 'hg resolve' and 'hg graft --continue --date '1234560000 120'')
+  (use 'hg resolve' and 'hg graft --continue')
   [255]
 
   $ echo foobar > b
diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -2365,10 +2365,6 @@ 
                 stateversion = 1
                 graftstate.save(stateversion, statedata)
                 extra = ''
-                if opts.get('user'):
-                    extra += ' --user %s' % procutil.shellquote(opts['user'])
-                if opts.get('date'):
-                    extra += ' --date %s' % procutil.shellquote(opts['date'])
                 if opts.get('log'):
                     extra += ' --log'
                 hint=_("use 'hg resolve' and 'hg graft --continue%s'") % extra