##// END OF EJS Templates
shelve: removed redundant merge detection method...
Taapas Agrawal -
r42739:e9f2252e default draft
parent child Browse files
Show More
@@ -452,8 +452,6 b' def createcmd(ui, repo, pats, opts):'
452 def _docreatecmd(ui, repo, pats, opts):
452 def _docreatecmd(ui, repo, pats, opts):
453 wctx = repo[None]
453 wctx = repo[None]
454 parents = wctx.parents()
454 parents = wctx.parents()
455 if len(parents) > 1:
456 raise error.Abort(_('cannot shelve while merging'))
457 parent = parents[0]
455 parent = parents[0]
458 origbranch = wctx.branch()
456 origbranch = wctx.branch()
459
457
@@ -979,12 +977,6 b' def _dounshelve(ui, repo, *shelved, **op'
979 return unshelvecontinue(ui, repo, state, opts)
977 return unshelvecontinue(ui, repo, state, opts)
980 elif len(shelved) > 1:
978 elif len(shelved) > 1:
981 raise error.Abort(_('can only unshelve one change at a time'))
979 raise error.Abort(_('can only unshelve one change at a time'))
982
983 # abort unshelve while merging (issue5123)
984 parents = repo[None].parents()
985 if len(parents) > 1:
986 raise error.Abort(_('cannot unshelve while merging'))
987
988 elif not shelved:
980 elif not shelved:
989 shelved = listshelves(repo)
981 shelved = listshelves(repo)
990 if not shelved:
982 if not shelved:
General Comments 0
You need to be logged in to leave comments. Login now