equal
deleted
inserted
replaced
1494 raise error.Abort(_(b'no destination specified')) |
1494 raise error.Abort(_(b'no destination specified')) |
1495 dest = pats.pop() |
1495 dest = pats.pop() |
1496 |
1496 |
1497 def walkpat(pat): |
1497 def walkpat(pat): |
1498 srcs = [] |
1498 srcs = [] |
1499 m = scmutil.match(ctx, [pat], opts, globbed=True) |
1499 # TODO: Inline and simplify the non-working-copy version of this code |
1500 for abs in ctx.walk(m): |
1500 # since it shares very little with the working-copy version of it. |
|
1501 ctx_to_walk = ctx if ctx.rev() is None else pctx |
|
1502 m = scmutil.match(ctx_to_walk, [pat], opts, globbed=True) |
|
1503 for abs in ctx_to_walk.walk(m): |
1501 rel = uipathfn(abs) |
1504 rel = uipathfn(abs) |
1502 exact = m.exact(abs) |
1505 exact = m.exact(abs) |
1503 if abs not in ctx: |
1506 if abs not in ctx: |
1504 if abs in pctx: |
1507 if abs in pctx: |
1505 if not after: |
1508 if not after: |