- Issue a warning when -c can't remove a target.
+ From Jeff Petkau:
+
+ - Fix interpretation of '#/../foo' on Win32 systems.
+
From Anthony Roach:
- Fixed use of command lines with spaces in their arguments,
self.__setTopLevelDir()
if name[0] == '#':
directory = self.Top
- name = os.path.normpath(name[1:])
- if name and (name[0] == os.sep or \
- name[0] == '/'):
+ name = name[1:]
+ if name and (name[0] == os.sep or name[0] == '/'):
# Correct such that '#/foo' is equivalent
# to '#foo'.
name = name[1:]
- name=os.path.join('.', name)
+ name = os.path.join('.', os.path.normpath(name))
elif not directory:
directory = self._cwd
return (os.path.normpath(name), directory)
Dir_test('.', './', sub_dir, sub)
Dir_test('./.', './', sub_dir, sub)
Dir_test('foo/./bar', 'foo/bar/', sub_dir_foo_bar, 'foo/')
+ Dir_test('#../foo', sub_foo, sub_foo, sub)
+ Dir_test('#/../foo', sub_foo, sub_foo, sub)
Dir_test('#foo/bar', 'foo/bar/', sub_dir_foo_bar, 'foo/')
Dir_test('#/foo/bar', 'foo/bar/', sub_dir_foo_bar, 'foo/')
Dir_test('#', './', sub_dir, sub)