convert: hg: optionally create branches as clones
If convert.hg.clonebranches is set, branches will be created as clones of
their parent revisions. All clones will be subdirectories of the
destination path.
Use smerge minor mode in emacs to resolve conflicts.
The condition-case is used to suppress errors with emacs versions before 21.
fix bundlerepo broken by
4205f626dc05
since we now use struct in case of lazy parser, this have to be an integer
instead of None
see
issue681
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