• Dan Villiom Podlaski Christiansen's avatar
    commit: warn the user when a commit already exists · 976b26bdd0d8
    Dan Villiom Podlaski Christiansen authored
    Sometimes, a commit will result in an exact match of a preexisting
    commit, and if that commit isn't a branch head, hg will incorrectly
    note that it created a new head. Instead, we should warn the user that
    commit already existed in the repository.
    In practice, this bug is rather uncommon, and will only occur when the
    usr explicitly sets the date.
    Please note that this commit contains an API change to
    Differential Revision: https://phab.mercurial-scm.org/D9257
commands.py 247 KB