[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: hgload problems
From: |
Mike Miller |
Subject: |
Re: hgload problems |
Date: |
Thu, 27 Mar 2014 20:14:54 -0400 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Thu, Mar 27, 2014 at 10:34:51 -0700, Muhali wrote:
> Rik-4 wrote
> >> if there is another file "foo.m" in the same directory you get the
> >> mentioned
> >> error (took me a while to find out). So I would consider this a bug
> >> (related
> >> to the 'Check file existence' part in hgload).
> > The problem is that the code used exist() to check for files and exist
> > searches for both the absolute file name and the file name + ".m". I
> > changed the code to use file_in_loadpath() in this changeset
> > (http://hg.savannah.gnu.org/hgweb/octave/rev/70d9db29db6f) and this now
> > works for me.
>
> no. If the file in question is foo.ofig, simply do
>
> touch foo
> octave --eval 'hgload foo'
>
> and you get the error. So, if there happens to be a file 'foo' lying around
> and one does 'hgsave foo; hgload foo' it doesn't work.
Let's move discussion back onto bug #41978.
--
mike