[PATCH] Prevent hg from looking for modules in the current dir

Giuseppe Bilotta bilotta78 at hotpop.com
Tue Jun 28 09:24:56 UTC 2005


This patch fixes the issue in Windows sytems that prevent hg from
running in the hg own repository. It removes the cwd from the module
look-up path.

--- hg.20050628	Tue Jun 28 11:03:14 2005
+++ hg	Tue Jun 28 11:21:20 2005
@@ -8,6 +8,9 @@
 # This software may be used and distributed according to the terms
 # of the GNU General Public License, incorporated herein by reference.
 
+import sys, os
+sys.path.remove(os.getcwd())
+
 from mercurial import commands
 
 commands.run()





(beware of word wrap)



-- 
Giuseppe "Oblomov" Bilotta

"I weep for our generation" -- Charlie Brown




More information about the Mercurial mailing list