git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-p4: t9819 failing

From
Luke Diamand <luke@diamand.org>
Date
Sep 24, 2015, 20:29 UTC
Message-ID
<CAE5ih7-f3V2YSWW7FO-MxB6BPu7WjB93jDDFs5mKkzz2wDX0yA@mail.gmail.com>
In-Reply-To
<CAE5ih78m9RbD=s_12ckA+yzRP=fuiruF=kasUSFZEjUZZA21UQ@mail.gmail.com>

OK, slight correction there - it now doesn't crash getting the disk usage, but I think it still needs to be updated following the other changes to case-handling.

Luke
On 24 September 2015 at 08:45, Luke Diamand <luke@diamand.org> wrote:
Show 41 quoted lines
> On 23 September 2015 at 13:28, Lars Schneider <larsxschneider@gmail.com> wrote:
>>
>>> Here's the last bit of the crash dump from git-p4 I get:
>>>
>>>  File "/home/ldiamand/git/git/git-p4", line 2580, in streamP4FilesCbSelf
>>>    self.streamP4FilesCb(entry)
>>>  File "/home/ldiamand/git/git/git-p4", line 2497, in streamP4FilesCb
>>>    required_bytes = int((4 * int(self.stream_file["fileSize"])) -
>>> calcDiskFree(self.cloneDestination))
>>>  File "/home/ldiamand/git/git/git-p4", line 116, in calcDiskFree
>>>    st = os.statvfs(dirname)
>>> OSError: [Errno 2] No such file or directory: 'lc'
>>>
>>> Luke
>> Confirmed. What do you think about this fix?
>
> Works for me!
>
>
>
>>
>> Thank you,
>> Lars
>>
>> ---
>>  git-p4.py | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/git-p4.py b/git-p4.py
>> index 1d1bb87..66c0a4e 100755
>> --- a/git-p4.py
>> +++ b/git-p4.py
>> @@ -3478,6 +3478,7 @@ class P4Clone(P4Sync):
>>
>>          print "Importing from %s into %s" % (', '.join(depotPaths), self.cloneDestination)
>>
>> +        self.cloneDestination = os.path.abspath(self.cloneDestination)
>>          if not os.path.exists(self.cloneDestination):
>>              os.makedirs(self.cloneDestination)
>>          chdir(self.cloneDestination)
>> --
Previous: Luke DiamandNext: Lars Schneider
Message 6 of 7 in “git-p4: t9819 failing”
  1. Luke DiamandSep 23, 2015
  2. Lars SchneiderSep 23, 2015
  3. Luke DiamandSep 23, 2015
  4. Lars SchneiderSep 23, 2015
  5. Luke DiamandSep 24, 2015
  6. Luke DiamandSep 24, 2015
  7. Lars SchneiderSep 25, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.