X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/6a259b96cff47e1fd64cbfd6f3d1e1d8e8b6486c..7f521b01d4366d1c9157a99766d1471d9b370a8d:/apps/catalogue/migrations/0003_from_hg.py diff --git a/apps/catalogue/migrations/0003_from_hg.py b/apps/catalogue/migrations/0003_from_hg.py index 1816af90..c0b4dad8 100644 --- a/apps/catalogue/migrations/0003_from_hg.py +++ b/apps/catalogue/migrations/0003_from_hg.py @@ -7,12 +7,11 @@ import re import urllib from django.db import models -from mercurial import hg, ui from south.db import db from south.v2 import DataMigration from django.conf import settings -from slughifi import slughifi +from fnpdjango.utils.text.slughifi import slughifi META_REGEX = re.compile(r'\s*', re.DOTALL | re.MULTILINE) STAGE_TAGS_RE = re.compile(r'^#stage-finished: (.*)$', re.MULTILINE) @@ -160,6 +159,8 @@ class Migration(DataMigration): except: print 'repository not configured, skipping' else: + from mercurial import hg, ui + print 'migrate from', hg_path repo = hg.repository(ui.ui(), hg_path) tip = repo['tip']