##// END OF EJS Templates
log: restore cache used by --copies...
Patrick Mezard -
r16175:280e834c stable
parent child Browse files
Show More
@@ -3849,9 +3849,11 b' def log(ui, repo, *pats, **opts):'
3849 limit = cmdutil.loglimit(opts)
3849 limit = cmdutil.loglimit(opts)
3850 count = 0
3850 count = 0
3851
3851
3852 endrev = None
3852 getrenamed, endrev = None, None
3853 if opts.get('copies') and opts.get('rev'):
3853 if opts.get('copies'):
3854 endrev = max(scmutil.revrange(repo, opts.get('rev'))) + 1
3854 if opts.get('rev'):
3855 endrev = max(scmutil.revrange(repo, opts.get('rev'))) + 1
3856 getrenamed = templatekw.getrenamedfn(repo, endrev=endrev)
3855
3857
3856 df = False
3858 df = False
3857 if opts["date"]:
3859 if opts["date"]:
@@ -3895,9 +3897,8 b' def log(ui, repo, *pats, **opts):'
3895 return
3897 return
3896
3898
3897 copies = None
3899 copies = None
3898 if opts.get('copies') and rev:
3900 if getrenamed is not None and rev:
3899 copies = []
3901 copies = []
3900 getrenamed = templatekw.getrenamedfn(repo, endrev=endrev)
3901 for fn in ctx.files():
3902 for fn in ctx.files():
3902 rename = getrenamed(fn, rev)
3903 rename = getrenamed(fn, rev)
3903 if rename:
3904 if rename:
General Comments 0
You need to be logged in to leave comments. Login now