##// END OF EJS Templates
mq: ensure mq changesets are set to secret when no phase data are found
Pierre-Yves David -
r15928:3a51eb88 default
parent child Browse files
Show More
@@ -3138,6 +3138,13 b' def qqueue(ui, repo, name=None, **opts):'
3138 3138 raise util.Abort(_('use --create to create a new queue'))
3139 3139 _setactive(name)
3140 3140
3141 def mqphasedefaults(repo, roots):
3142 """callback used to set mq changeset as secret when no phase data exists"""
3143 if repo.mq.applied:
3144 qbase = repo[repo.mq.applied[0]]
3145 roots[phases.secret].add(qbase.node())
3146 return roots
3147
3141 3148 def reposetup(ui, repo):
3142 3149 class mqrepo(repo.__class__):
3143 3150 @util.propertycache
@@ -3237,6 +3244,8 b' def reposetup(ui, repo):'
3237 3244 if repo.local():
3238 3245 repo.__class__ = mqrepo
3239 3246
3247 repo._phasedefaults.append(mqphasedefaults)
3248
3240 3249 def mqimport(orig, ui, repo, *args, **kwargs):
3241 3250 if (hasattr(repo, 'abortifwdirpatched')
3242 3251 and not kwargs.get('no_commit', False)):
General Comments 0
You need to be logged in to leave comments. Login now