##// END OF EJS Templates
graft: drop --user and --date values info from hint in case of conflicts...
Pulkit Goyal -
r38172:57365707 default
parent child Browse files
Show More
@@ -64,7 +64,6 b' from . import ('
64 )
64 )
65 from .utils import (
65 from .utils import (
66 dateutil,
66 dateutil,
67 procutil,
68 stringutil,
67 stringutil,
69 )
68 )
70
69
@@ -2365,10 +2364,6 b' def _dograft(ui, repo, *revs, **opts):'
2365 stateversion = 1
2364 stateversion = 1
2366 graftstate.save(stateversion, statedata)
2365 graftstate.save(stateversion, statedata)
2367 extra = ''
2366 extra = ''
2368 if opts.get('user'):
2369 extra += ' --user %s' % procutil.shellquote(opts['user'])
2370 if opts.get('date'):
2371 extra += ' --date %s' % procutil.shellquote(opts['date'])
2372 if opts.get('log'):
2367 if opts.get('log'):
2373 extra += ' --log'
2368 extra += ' --log'
2374 hint=_("use 'hg resolve' and 'hg graft --continue%s'") % extra
2369 hint=_("use 'hg resolve' and 'hg graft --continue%s'") % extra
@@ -1456,7 +1456,7 b' running `hg graft --continue`'
1456 merging b
1456 merging b
1457 warning: conflicts while merging b! (edit, then use 'hg resolve --mark')
1457 warning: conflicts while merging b! (edit, then use 'hg resolve --mark')
1458 abort: unresolved conflicts, can't continue
1458 abort: unresolved conflicts, can't continue
1459 (use 'hg resolve' and 'hg graft --continue --user batman')
1459 (use 'hg resolve' and 'hg graft --continue')
1460 [255]
1460 [255]
1461
1461
1462 $ echo wat > b
1462 $ echo wat > b
@@ -1506,7 +1506,7 b' Test that --date is preserved and reused'
1506 merging b
1506 merging b
1507 warning: conflicts while merging b! (edit, then use 'hg resolve --mark')
1507 warning: conflicts while merging b! (edit, then use 'hg resolve --mark')
1508 abort: unresolved conflicts, can't continue
1508 abort: unresolved conflicts, can't continue
1509 (use 'hg resolve' and 'hg graft --continue --date '1234560000 120'')
1509 (use 'hg resolve' and 'hg graft --continue')
1510 [255]
1510 [255]
1511
1511
1512 $ echo foobar > b
1512 $ echo foobar > b
General Comments 0
You need to be logged in to leave comments. Login now