##// END OF EJS Templates
cmdutil: pass metadata from amend() to cleanupnodes...
Pulkit Goyal -
r34795:5781e093 default
parent child Browse files
Show More
@@ -3152,7 +3152,10 b' def amend(ui, repo, old, extra, pats, op'
3152 # Reroute the working copy parent to the new changeset
3152 # Reroute the working copy parent to the new changeset
3153 repo.setparents(newid, nullid)
3153 repo.setparents(newid, nullid)
3154 mapping = {old.node(): (newid,)}
3154 mapping = {old.node(): (newid,)}
3155 scmutil.cleanupnodes(repo, mapping, 'amend')
3155 obsmetadata = None
3156 if opts.get('note'):
3157 obsmetadata = {'note': opts['note']}
3158 scmutil.cleanupnodes(repo, mapping, 'amend', metadata=obsmetadata)
3156
3159
3157 # Fixing the dirstate because localrepo.commitctx does not update
3160 # Fixing the dirstate because localrepo.commitctx does not update
3158 # it. This is rather convenient because we did not need to update
3161 # it. This is rather convenient because we did not need to update
General Comments 0
You need to be logged in to leave comments. Login now