Justin Patrin wrote:
> On 4/9/07, Benoît Dejean <address@hidden> wrote:
>> Le lundi 09 avril 2007 à 14:40 -0700, Justin Patrin a écrit :
>> > On 4/9/07, Benoît Dejean <address@hidden> wrote:
>> stat64("/tmp/mtn/_MTN", 0x7fea8af8) = -1 ENOENT (No such file or
>> directory)
>> stat64("/tmp/_MTN", {st_mode=S_IFDIR|0700, st_size=144, ...}) = 0
>> stat64("/tmp/_MTN", {st_mode=S_IFDIR|0700, st_size=144, ...}) = 0
>> stat64("/tmp/_MTN", {st_mode=S_IFDIR|0700, st_size=144, ...}) = 0
>> stat64("/tmp/_MTN", {st_mode=S_IFDIR|0700, st_size=144, ...}) = 0
>> stat64("/tmp/_MTN/..", {st_mode=S_IFDIR|S_ISVTX|0777,
>> st_size=1016, ...}) = 0
>> chdir("/tmp")
>> ...
>> open("mtn.key", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 4
>>
>
> Hmmm....I don't know why that would be happening, the code is thus:
> ofstream fout(idx(args,0)().c_str(), ofstream::out);
> unless mtn is elsewhere changing the path in the arg to be ../ but I
> kind of doubt it... perhaps mtn always changes its dir to the root of
> the workspace when in a workspace. I'm not sure about that. Anyone
> else care to comment?
Yeah, monotone always searches for a workspace root (that is a directory
that contains an _MTN directory) in or above the current directory.
If/when it finds the workspace root it does chdir to it.