Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tempfile directory #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

tempfile directory #18

wants to merge 1 commit into from

Conversation

astromatt
Copy link

I don't know why pysvn in 1.7.5 version, takes dirname instead of path (it is documented otherwise: http://pysvn.tigris.org/docs/pysvn_prog_ref.html#pysvn_client_diff).

.../pysvn-1.7.5/Source/pysvn_svnenv.hpp has #define PYSVN_HAS_IO_OPEN_UNIQUE_FILE2
and then it uses to create a path to filename

svn_error_t *error = svn_io_open_unique_file2 (&m_apr_file, &m_filename, tmp_dir.c_str(), ".tmp", svn_io_file_del_none, m_pool);
in .../pysvn-1.7.5/Source/pysvn_client_cmd_diff.cpp

I am not sure, whether is a new version bug/feature or you have configured and compiled pysvn with some custom flags (I did not).

This solution may be vulnerable to race condition, however I haven't tested it.

I don't know why pysvn in 1.7.5 version, takes dirname instead of path (it is documented otherwise: http://pysvn.tigris.org/docs/pysvn_prog_ref.html#pysvn_client_diff).

.../pysvn-1.7.5/Source/pysvn_svnenv.hpp has #define PYSVN_HAS_IO_OPEN_UNIQUE_FILE2
and then it uses to create a path to filename

svn_error_t *error = svn_io_open_unique_file2 (&m_apr_file, &m_filename, tmp_dir.c_str(), ".tmp", svn_io_file_del_none, m_pool);
in .../pysvn-1.7.5/Source/pysvn_client_cmd_diff.cpp

I am not sure, whether is a new version bug/feature or you have configured and compiled pysvn with some custom flags (I did not).

This solution may be vulnerable to race condition, however I haven't tested it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant