# HG changeset patch # User mpm@selenic.com # Date 1116639903 28800 # Node ID 82fd709deb8e9a11cc5bdc530708a2f6b153feca # Parent 66fb61d9d97d72ba277bb2043c0829170e78da86 Subdir support for annotate diff -r 66fb61d9d97d -r 82fd709deb8e hg --- 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'])