comparison hgext/extdiff.py @ 6760:4faaa0535ea7

status: clean up all users for unknown files
author Matt Mackall <mpm@selenic.com>
date Fri, 27 Jun 2008 13:43:29 -0500
parents f6c00b17387c
children bd979854a388
comparison
equal deleted inserted replaced
6759:9d2ab50803e9 6760:4faaa0535ea7
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 matcher = cmdutil.match(repo, pats, opts) 124 matcher = cmdutil.match(repo, pats, opts)
125 modified, added, removed, deleted, unknown = repo.status( 125 modified, added, removed = repo.status(node1, node2, matcher)[:3]
126 node1, node2, matcher)[:5]
127 if not (modified or added or removed): 126 if not (modified or added or removed):
128 return 0 127 return 0
129 128
130 tmproot = tempfile.mkdtemp(prefix='extdiff.') 129 tmproot = tempfile.mkdtemp(prefix='extdiff.')
131 dir2root = '' 130 dir2root = ''