summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-07-17 10:58:44 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-17 10:58:44 -0300
commit3fe2344caf39a540e5315763e4a5ca0183afbd51 (patch)
tree72450aca0df7f8f757fa113a603dd012a7f584bf
parenta125274f2dd3073a55dc7c59434dd60d4438bfef (diff)
downloadmediapointer-dvb-s2-3fe2344caf39a540e5315763e4a5ca0183afbd51.tar.gz
mediapointer-dvb-s2-3fe2344caf39a540e5315763e4a5ca0183afbd51.tar.bz2
Don't increment if a patch were renamed
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rwxr-xr-xhgimport3
1 files changed, 3 insertions, 0 deletions
diff --git a/hgimport b/hgimport
index a424587dc..d12c84f81 100755
--- a/hgimport
+++ b/hgimport
@@ -68,6 +68,9 @@ for i in $CS; do
echo -e "\t\tNode parents $parents"
echo -e "\t\tRenamed to $newname"
mv $name $newname
+
+ # Avoids incrementing if rename happens
+ j=$((j-1))
fi
else
last="`hg log -r -1|grep changeset`"