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

login
register
mail settings
Submitter Dan Villiom Podlaski Christiansen
Date Jan. 2, 2014, 7:04 p.m.
Message ID <f7528d672be5c2c18476.1388689473@dork.local>
Download mbox | patch
Permalink /patch/3255/
State Superseded
Headers show

Comments

Dan Villiom Podlaski Christiansen - Jan. 2, 2014, 7:04 p.m.
# HG changeset patch
# User Dan Villiom Podlaski Christiansen <dan@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.

Patch

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")
+@eh.wrapcommand("import")
 @eh.wrapcommand("push")
 @eh.wrapcommand("pull")
 @eh.wrapcommand("graft")