comparison hgext/extdiff.py @ 8026:683d8ebcf434

expand "dir" to "directory" in help texts
author Martin Geisler <mg@lazybytes.net>
date Tue, 07 Apr 2009 22:47:56 +0200
parents cdb848e8c4b5
children aece3c9e62f1
comparison
equal deleted inserted replaced
8025:1280934dd2dd 8026:683d8ebcf434
5 # This software may be used and distributed according to the terms 5 # This software may be used and distributed according to the terms
6 # of the GNU General Public License, incorporated herein by reference. 6 # of the GNU General Public License, incorporated herein by reference.
7 7
8 ''' 8 '''
9 The `extdiff' Mercurial extension allows you to use external programs 9 The `extdiff' Mercurial extension allows you to use external programs
10 to compare revisions, or revision with working dir. The external diff 10 to compare revisions, or revision with working directory. The external diff
11 programs are called with a configurable set of options and two 11 programs are called with a configurable set of options and two
12 non-option arguments: paths to directories containing snapshots of 12 non-option arguments: paths to directories containing snapshots of
13 files to compare. 13 files to compare.
14 14
15 To enable this extension: 15 To enable this extension:
83 dirname = os.path.basename(repo.root) 83 dirname = os.path.basename(repo.root)
84 if dirname == "": 84 if dirname == "":
85 dirname = "root" 85 dirname = "root"
86 base = os.path.join(tmproot, dirname) 86 base = os.path.join(tmproot, dirname)
87 os.mkdir(base) 87 os.mkdir(base)
88 ui.note(_('making snapshot of %d files from working dir\n') % 88 ui.note(_('making snapshot of %d files from working directory\n') %
89 (len(files))) 89 (len(files)))
90 90
91 fns_and_mtime = [] 91 fns_and_mtime = []
92 92
93 for fn in files: 93 for fn in files: