demandimport: ignore pwd and grp.
Both are unavailable under Windows and tarfile detects them via ImportError.
Make audit_path more stringent.
The following properties of a path are now checked for:
- under top-level .hg
- starts at the root of a windows drive
- contains ".."
- traverses a symlink (e.g. a/symlink_here/b)
- inside a nested repository
If any of these is true, the path is rejected.
The check for traversing a symlink is arguably stricter than necessary;
perhaps we should be checking for symlinks that point outside the
repository.
refactor options from cmdtable
- add extracommitopts for user and date
- factor stuff
raise util.Abort again if specified revision is not an integer.
This was changed to NoRepo in
462cc56d898f, because specifying non-integer
revisions for e.g. the Mercurial backend caused Abort to be raised in the
subversion importer.
Now util.Abort is raised again, but the check is done after verifying if it
really is a subversion repository.