[PATCH 2 of 3 evolve] import: warn about new unstable changesets

Dan Villiom Podlaski Christiansen dan at cabo.dk
Thu Jan 2 13:04:33 CST 2014


# HG changeset patch
# User Dan Villiom Podlaski Christiansen <dan at cabo.dk>
# Date 1382604170 -7200
#      Thu Oct 24 10:42:50 2013 +0200
# Node ID f7528d672be5c2c18476714f21c32670127236ab
# Parent  7c603dfb60e88b5b18ecf3bcdbba7313499047bb
import: warn about new unstable changesets

'hg import' can add new unstable changesets, for example when invoked
with '--hidden' or '--exact', or when the working directory parent
already is unstable.

diff --git a/hgext/evolve.py b/hgext/evolve.py
--- a/hgext/evolve.py
+++ b/hgext/evolve.py
@@ -569,6 +569,7 @@ def wrapmayobsoletewc(origfn, ui, repo, 
 # XXX this could wrap transaction code
 # XXX (but this is a bit a layer violation)
 @eh.wrapcommand("commit")
+ at eh.wrapcommand("import")
 @eh.wrapcommand("push")
 @eh.wrapcommand("pull")
 @eh.wrapcommand("graft")


More information about the Mercurial-devel mailing list