scmutil: improve path calculation for install-relative RC files (
issue2841)
This code was ugly and might do the wrong thing with symlinks.
prepush: show details about new remote heads with --verbose
previously, this info was only shown with --debug
Note that the new remote heads are only shown if the command aborts,
that is, they are *not* shown if --force was specified.
See also change
91cb08a9e7fb.
prepush: print short hash of first new head in abort message
and don't mention the branch if it's the default branch.
OLD:
$ hg push ../a
pushing to ../a
searching for changes
abort: push creates new remote heads on branch 'default'!
(you should pull and merge or use push -f to force)
NEW:
$ hg push ../a
pushing to ../a
searching for changes
abort: push creates new remote head
1e108cc5548c!
(you should pull and merge or use push -f to force)
This helps to identify which local head is causing troubles.
See also change
91cb08a9e7fb.
prepush: eliminate 'if branch'
branch is always set anyway
No change in program behavior.
localrepo: simplify file bundling code and fix progress bug
Progress for files was off by one, and the code was rather hackish.