Skip to content
  • 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
    cmdutil.commitstatus()
    
    Differential Revision: https://phab.mercurial-scm.org/D9257
    976b26bdd0d8