##// END OF EJS Templates
merge with stable
Matt Mackall -
r24542:9fbda55c merge default
parent child Browse files
Show More
@@ -677,7 +677,7 b' class dirstate(object):'
677 677 results[nf] = None
678 678 if matchedir:
679 679 matchedir(nf)
680 foundadd(nf)
680 foundadd((nf, ff))
681 681 elif kind == regkind or kind == lnkkind:
682 682 results[nf] = st
683 683 else:
@@ -753,15 +753,16 b' class dirstate(object):'
753 753 results, work, dirsnotfound = self._walkexplicit(match, subrepos)
754 754
755 755 skipstep3 = skipstep3 and not (work or dirsnotfound)
756 work = [d for d in work if not dirignore(d)]
756 work = [d for d in work if not dirignore(d[0])]
757 757 wadd = work.append
758 758
759 759 # step 2: visit subdirectories
760 760 while work:
761 nd = work.pop()
761 nd, d = work.pop()
762 762 skip = None
763 763 if nd == '.':
764 764 nd = ''
765 d = ''
765 766 else:
766 767 skip = '.hg'
767 768 try:
@@ -776,22 +777,24 b' class dirstate(object):'
776 777 # even though f might be a directory, we're only interested
777 778 # in comparing it to files currently in the dmap --
778 779 # therefore normalizefile is enough
780 f = d and (d + "/" + f) or f
779 781 nf = normalizefile(nd and (nd + "/" + f) or f, True, True)
780 782 else:
781 783 nf = nd and (nd + "/" + f) or f
784 f = nf
782 785 if nf not in results:
783 786 if kind == dirkind:
784 787 if not ignore(nf):
785 788 if matchtdir:
786 789 matchtdir(nf)
787 wadd(nf)
790 wadd((nf, f))
788 791 if nf in dmap and (matchalways or matchfn(nf)):
789 792 results[nf] = None
790 793 elif kind == regkind or kind == lnkkind:
791 794 if nf in dmap:
792 795 if matchalways or matchfn(nf):
793 796 results[nf] = st
794 elif (matchalways or matchfn(nf)) and not ignore(nf):
797 elif (matchalways or matchfn(f)) and not ignore(nf):
795 798 results[nf] = st
796 799 elif nf in dmap and (matchalways or matchfn(nf)):
797 800 results[nf] = None
@@ -1391,13 +1391,13 b' User interface controls.'
1391 1391 format.
1392 1392 Defaults to showing the hash, tags, branches, bookmarks, author, and
1393 1393 the first line of the commit description.
1394 You have to pay attention to encodings of managed files, if you
1395 use non-ASCII characters in tags, branches, bookmarks, author
1396 and/or commit descriptions. At template expansion, non-ASCII
1397 characters use the encoding specified by ``--encoding`` global
1398 option, ``HGENCODING`` or other locale setting environment
1399 variables. The difference of encoding between merged file and
1400 conflict markers causes serious problem.
1394 If you use non-ASCII characters in names for tags, branches, bookmarks,
1395 authors, and/or commit descriptions, you must pay attention to encodings of
1396 managed files. At template expansion, non-ASCII characters use the encoding
1397 specified by the ``--encoding`` global option, ``HGENCODING`` or other
1398 environment variables that govern your locale. If the encoding of the merge
1399 markers is different from the encoding of the merged files,
1400 serious problems may occur.
1401 1401
1402 1402 ``portablefilenames``
1403 1403 Check for portable filenames. Can be ``warn``, ``ignore`` or ``abort``.
@@ -169,4 +169,16 b' forgotten before file with same name is '
169 169 $ cat d
170 170 file d
171 171
172 Test that adding a directory doesn't require case matching (issue4578)
173 #if icasefs
174 $ mkdir -p CapsDir1/CapsDir
175 $ echo abc > CapsDir1/CapsDir/AbC.txt
176 $ mkdir CapsDir1/CapsDir/SubDir
177 $ echo def > CapsDir1/CapsDir/SubDir/Def.txt
178
179 $ hg add -v capsdir1/capsdir
180 adding CapsDir1/CapsDir/AbC.txt (glob)
181 adding CapsDir1/CapsDir/SubDir/Def.txt (glob)
182 #endif
183
172 184 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now