view tests/test-debugindexdot @ 9814:5070e4d57276

buildrpm: enhance changelog of the RPM file Now the changelog is different depending if the parent is tagged: - for tags, keep the previous content, i.e. changelog of the tags. - for nightly build, changelog of the changesets since the latest tag As RPM is expecting strictly descending dates, I have used a python script to reorder the mercurial changelog.
author Gilles Moris <gilles.moris@free.fr>
date Fri, 06 Nov 2009 10:06:08 +0100
parents 8838fe5a236f
children
line wrap: on
line source

#!/bin/sh

# Just exercize debugindexdot
# Create a short file history including a merge.
hg init t
cd t
echo a > a
hg ci -qAm t1 -d '0 0'
echo a >> a
hg ci -m t2 -d '1 0'
hg up -qC 0
echo b >> a
hg ci -m t3 -d '2 0'
HGMERGE=true hg merge -q
hg ci -m merge -d '3 0'

hg debugindexdot .hg/store/data/a.i