##// END OF EJS Templates
merge with stable
Martin Geisler -
r13595:241380fc merge default
parent child Browse files
Show More
@@ -260,13 +260,15 b' def reposetup(ui, repo):'
260
260
261 if eolmtime > cachemtime:
261 if eolmtime > cachemtime:
262 ui.debug("eol: detected change in .hgeol\n")
262 ui.debug("eol: detected change in .hgeol\n")
263 # TODO: we could introduce a method for this in dirstate.
264 wlock = None
263 wlock = None
265 try:
264 try:
266 wlock = self.wlock()
265 wlock = self.wlock()
267 for f, e in self.dirstate._map.iteritems():
266 for f in self.dirstate:
268 self.dirstate._map[f] = (e[0], e[1], -1, 0)
267 if self.dirstate[f] == 'n':
269 self.dirstate._dirty = True
268 # all normal files need to be looked at
269 # again since the new .hgeol file might no
270 # longer match a file it matched before
271 self.dirstate.normallookup(f)
270 # Touch the cache to update mtime.
272 # Touch the cache to update mtime.
271 self.opener("eol.cache", "w").close()
273 self.opener("eol.cache", "w").close()
272 wlock.release()
274 wlock.release()
@@ -56,6 +56,7 b' from distutils.spawn import spawn, find_'
56 from distutils.ccompiler import new_compiler
56 from distutils.ccompiler import new_compiler
57 from distutils.errors import CCompilerError
57 from distutils.errors import CCompilerError
58 from distutils.sysconfig import get_python_inc
58 from distutils.sysconfig import get_python_inc
59 from distutils.version import StrictVersion
59
60
60 scripts = ['hg']
61 scripts = ['hg']
61 if os.name == 'nt':
62 if os.name == 'nt':
@@ -373,6 +374,15 b" if os.name == 'nt':"
373 # form W.X.Y.Z, where W,X,Y,Z are numbers in the range 0..65535
374 # form W.X.Y.Z, where W,X,Y,Z are numbers in the range 0..65535
374 setupversion = version.split('+', 1)[0]
375 setupversion = version.split('+', 1)[0]
375
376
377 if sys.platform == 'darwin' and os.path.exists('/usr/bin/xcodebuild'):
378 # XCode 4.0 dropped support for ppc architecture, which is hardcoded in
379 # distutils.sysconfig
380 version = runcmd(['/usr/bin/xcodebuild', '-version'], {}).splitlines()[0]
381 # Also parse only first digit, because 3.2.1 can't be parsed nicely
382 if (version.startswith('Xcode') and
383 StrictVersion(version.split()[1]) >= StrictVersion('4.0')):
384 os.environ['ARCHFLAGS'] = '-arch i386 -arch x86_64'
385
376 setup(name='mercurial',
386 setup(name='mercurial',
377 version=setupversion,
387 version=setupversion,
378 author='Matt Mackall',
388 author='Matt Mackall',
General Comments 0
You need to be logged in to leave comments. Login now