Commits

Dan Villiom Podlaski Christiansen  committed 11a03a2

mark pulled changesets as public (using phases, introduced in Mercurial 2.1)

  • Participants
  • Parent commits a171231

Comments (0)

Files changed (1)

     util_setflags = util.set_flags
     revpair = cmdutil.revpair
 
+try:
+    from mercurial import phases
+    phases.advanceboundary
+except ImportError:
+    phases = None
+
 from mercurial import revset
 from mercurial import templatekw
 
             p4rev = repo.commitctx(ctx)
             ctx = repo[p4rev]
 
+            if phases:
+                phases.advanceboundary(repo, phases.public, [ctx.node()])
+
             for l in client.labels(c):
                 tags[l] = (c, ctx.hex())
 
                 ctx = repo[p4rev]
                 ui.note(_('added changeset %d:%s\n') % (ctx.rev(), ctx))
 
+                if phases:
+                    phases.advanceboundary(repo, phases.public, [ctx.node()])
+
             finally:
                 lock.release()
                 del lock