Merge lp:~luoyonggang/subvertpy/python2 into lp:~jelmer/subvertpy/trunk
Proposed by
Yonggang Luo
Status: | Superseded |
---|---|
Proposed branch: | lp:~luoyonggang/subvertpy/python2 |
Merge into: | lp:~jelmer/subvertpy/trunk |
Diff against target: |
114 lines (+22/-35) 3 files modified
subvertpy/client.c (+0/-7) subvertpy/tests/test_client.py (+3/-3) subvertpy/util.c (+19/-25) |
To merge this branch: | bzr merge lp:~luoyonggang/subvertpy/python2 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jelmer Vernooij | Needs Fixing | ||
Review via email: mp+99708@code.launchpad.net |
Description of the change
Get client diff works under Windows.
To post a comment you must log in.
Unmerged revisions
- 2454. By Yonggang Luo
-
comments update.
- 2453. By Yonggang Luo
-
Becuase apr_os_file_put didn't works under win32, so use apr_file_open instead
apr_os_file_put under win32. - 2452. By Yonggang Luo
-
Use addCleanup instead directly file close.
- 2451. By Yonggang Luo
-
Python 2.4 didn't support for b prefix.
apr_pool_destroy( temp_pool) can close files. - 2450. By Yonggang Luo
-
The newlines are different under Windows to Unix-like system.
So only compare with splits.
The diff resulted files should be closed. - 2449. By Yonggang Luo
-
os.tmpfile is deperated and not works properly under Win7. use tempfile.
NamedTemporaryF ile
instead, so that it works under Windows.
Moving away from os.tmpfile() to NamedTemporaryFile (or something similar) seems reasonable to me, especially given os.tmpfile()'s status.
However: from_object( ); this may not always be possible
* We can't use b"" - subvertpy is compatible with 2.4 which AFAIK doesn't have b"".
* Please don't mix formatting with code changes - it makes it hard to actually see what's going on.
* There is no need to explicitly close the apr file handles - that's done when their pool is cleaned up AFAIK.
* Please don't reopen files in apr_file_