changeset 21579 | 87a972b5c039 |
parent 21578 | 7cfe51661e98 |
child 21689 | 503bb3af70fe |
21578:7cfe51661e98 | 21579:87a972b5c039 |
---|---|
2248 def revert(ui, repo, ctx, parents, *pats, **opts): |
2248 def revert(ui, repo, ctx, parents, *pats, **opts): |
2249 parent, p2 = parents |
2249 parent, p2 = parents |
2250 node = ctx.node() |
2250 node = ctx.node() |
2251 |
2251 |
2252 mf = ctx.manifest() |
2252 mf = ctx.manifest() |
2253 if node == p2: |
|
2254 parent = p2 |
|
2253 if node == parent: |
2255 if node == parent: |
2254 pmf = mf |
2256 pmf = mf |
2255 else: |
2257 else: |
2256 pmf = None |
2258 pmf = None |
2257 |
2259 |