After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 597718 - Error running meld on svn versioned file
Error running meld on svn versioned file
Status: RESOLVED FIXED
Product: meld
Classification: Other
Component: version
1.3.x
Other Linux
: Normal normal
: ---
Assigned To: Kai Willadsen
Stephen Kennedy
: 620862 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-10-07 18:48 UTC by chris.scrimgeour
Modified: 2010-06-07 21:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch that avoids passing the empty string to subprocess (751 bytes, patch)
2009-10-11 00:21 UTC, Kai Willadsen
none Details | Review

Description chris.scrimgeour 2009-10-07 18:48:29 UTC
Running meld from within a subversion tree with the command 'meld Jamfile' gives an error:
Traceback (most recent call last):
  • File "/usr/local/lib/meld/task.py", line 130 in iteration
    ret = task()
  • File "/usr/local/lib/meld/vcview.py", line 353 in run_diff_iter
    diff = difffunc()
  • File "/usr/local/lib/meld/vcview.py", line 419 in _command_iter
    r = readfunc()
  • File "/usr/local/lib/meld/misc.py", line 209 in __call__
    self.proc = subprocess.Popen(command, cwd=workdir, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  • File "/usr/lib/python2.6/subprocess.py", line 595 in __init__
    errread, errwrite)
  • File "/usr/lib/python2.6/subprocess.py", line 1092 in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory: ''

The command 'meld ./Jamfile' works as expected.
Comment 1 Kai Willadsen 2009-10-11 00:21:11 UTC
Created attachment 145236 [details] [review]
Patch that avoids passing the empty string to subprocess

In the move to using subprocess, it looks like the case where the current working directory is passed in as "" was missed. This patch fixes the problem for me... can you confirm whether it works for you as well?
Comment 2 David Kelley 2009-10-12 19:15:31 UTC
I also encountered this bug and this patch works for me.
Comment 3 Kai Willadsen 2009-10-12 23:46:00 UTC
I've pushed this patch to head. Thanks for the bug report.
Comment 4 chris.scrimgeour 2009-10-20 20:46:30 UTC
This patch works for me. Thanks.
Comment 5 Kai Willadsen 2010-06-07 21:44:49 UTC
*** Bug 620862 has been marked as a duplicate of this bug. ***