Mercurial > hg-stable
changeset 122:82fd709deb8e
Subdir support for annotate
author | mpm@selenic.com |
---|---|
date | Fri, 20 May 2005 17:45:03 -0800 |
parents | 66fb61d9d97d |
children | b93cc016eec9 |
files | hg |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/hg Fri May 20 17:44:34 2005 -0800 +++ b/hg Fri May 20 17:45:03 2005 -0800 @@ -213,7 +213,10 @@ opts = [('r', 'revision', '', 'revision')] args = fancyopts.fancyopts(args, opts, aoptions, 'hg annotate [-r id] [files]') + if args: + if relpath: args = [ os.path.join(relpath, x) for x in args ] + node = repo.current if aoptions['revision']: node = repo.changelog.lookup(aoptions['revision'])