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

"info" failing on files added but not committed #169

Open
jfthuong opened this issue Dec 23, 2020 · 0 comments
Open

"info" failing on files added but not committed #169

jfthuong opened this issue Dec 23, 2020 · 0 comments

Comments

@jfthuong
Copy link

SVN could run info on files that have just been added.

However, this use case raises an error with pysvn

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "c:\python37-32\lib\site-packages\svn\common.py", line 91, in info
    commit_attr = root.find('entry/commit').attrib
AttributeError: 'NoneType' object has no attribute 'attrib'

'NoneType' object has no attribute 'attrib'

It is because the XML result for a file just added does not have the tag <entry><commit>.

The function CommonClient.info shall check the schedule (e.g. <schedule>add</schedule> for a file just added).

@jfthuong jfthuong changed the title "info" failing on files not committed "info" failing on files added but not committed Dec 23, 2020
jfthuong pushed a commit to jfthuong/PySvn that referenced this issue Dec 23, 2020
- Corrected CommonClient.info for case when a file has been added but not committed
- Improved Test Cases for info function
jfthuong pushed a commit to jfthuong/PySvn that referenced this issue Dec 23, 2020
- Corrected CommonClient.info for case when a file has been added but not committed
- Improved Test Cases for info function

dsoprea#96: Added depth and external to several functions
- Added depth, (set_depth), and "external" options for commands
- Updated commands checkout, update, info, list, and commit
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

No branches or pull requests

1 participant