hgext/extdiff.py
changeset 6582 5acbdd3941c4
parent 6211 f89fd07fc51d
child 6603 41eb20cc1c02
equal deleted inserted replaced
6581:1ae7cb678d24 6582:5acbdd3941c4
   119     - copy to a temp structure if diffing working revision with
   119     - copy to a temp structure if diffing working revision with
   120       another one and more than 1 file is changed
   120       another one and more than 1 file is changed
   121     - just invoke the diff for a single file in the working dir
   121     - just invoke the diff for a single file in the working dir
   122     '''
   122     '''
   123     node1, node2 = cmdutil.revpair(repo, opts['rev'])
   123     node1, node2 = cmdutil.revpair(repo, opts['rev'])
   124     files, matchfn, anypats = cmdutil.matchpats(repo, pats, opts)
   124     matcher = cmdutil.match(repo, pats, opts)
   125     modified, added, removed, deleted, unknown = repo.status(
   125     modified, added, removed, deleted, unknown = repo.status(
   126         node1, node2, files, match=matchfn)[:5]
   126         node1, node2, matcher.files(), match=matcher)[:5]
   127     if not (modified or added or removed):
   127     if not (modified or added or removed):
   128         return 0
   128         return 0
   129 
   129 
   130     tmproot = tempfile.mkdtemp(prefix='extdiff.')
   130     tmproot = tempfile.mkdtemp(prefix='extdiff.')
   131     dir2root = ''
   131     dir2root = ''