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

get_node returns FileNode with wrong path given #23

Open
lukaszb opened this issue Jan 23, 2011 · 0 comments
Open

get_node returns FileNode with wrong path given #23

lukaszb opened this issue Jan 23, 2011 · 0 comments

Comments

@lukaszb
Copy link
Member

lukaszb commented Jan 23, 2011

In example, vcs has file 'setup.py' at repository. If requested, git backend would return this file for path 'foo/bar/setup.py'.

{{{
import vcs
repo = vcs.get_repo('git', 'vcs')
f = repo.request('setup.py')

last = repo.get_changeset()
f2 = last.get_node('setup.py')
f is f2 # True

Mercurial backend raises ChangesetError here, as supposed

f3 = last.get_node('foo/bar/setup.py')
f is f3 # False
f.content == f3.content # True
}}}

It seems the problem lies in _get_hex_for_path GitChangeset's method implementation.


Reference: https://bitbucket.org/marcinkuzminski/vcs/issues/23/

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