On Feb 14, 2007, at 1:53 PM, Fred B wrote:
Could you try to make and run a new command with this:
<snip>
This produces exactly the same error:
Traceback (most recent call last): File "/opt/local/bin/hg", line 12, in ? commands.run() File "/opt/local/lib/python2.4/site-packages/ mercurial/commands.py", line 3000, in run sys.exit(dispatch(sys.argv [1:])) File "/opt/local/lib/python2.4/site-packages/mercurial/ commands.py", line 3223, in dispatch return d() File "/opt/local/lib/ python2.4/site-packages/mercurial/commands.py", line 3182, in d = lambda: func(u, repo, *args, **cmdoptions) File "/opt/local/lib/ python2.4/site-packages/mercurial/commands.py", line 2371, in status files, matchfn, anypats = cmdutil.matchpats(repo, pats, opts) File "/ opt/local/lib/python2.4/site-packages/mercurial/cmdutil.py", line 139, in matchpats opts.get('exclude'), head) File "/opt/local/lib/ python2.4/site-packages/mercurial/util.py", line 367, in cmdmatcher return _matcher(canonroot, cwd, names, inc, exc, head, dflt_pat, src) File "/opt/local/lib/python2.4/site-packages/mercurial/util.py", line 454, in _matcher name = canonpath(canonroot, cwd, name) File "/opt/ local/lib/python2.4/site-packages/mercurial/util.py", line 348, in canonpath name = os.path.join(*rel) TypeError: join() takes at least 1 argument (0 given)
I think I found the problem though. This works fine:
"$TM_HG" --debug status (versus "$TM_HG" --debug status "$WorkerPath")
i.e. do not pass it $WorkPath. I am not sure why it gets passed anyways since your $PWD is already $WorkPath. It doesn't seem to be necessary, but then again I am quite naive about these things.
Yi