fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Configure editors diff url
[redakcja.git]
/
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
1816af9
..
d836067
100644
(file)
--- a/
apps/catalogue/migrations/0003_from_hg.py
+++ b/
apps/catalogue/migrations/0003_from_hg.py
@@
-7,7
+7,6
@@
import re
import urllib
from django.db import models
import urllib
from django.db import models
-from mercurial import hg, ui
from south.db import db
from south.v2 import DataMigration
from south.db import db
from south.v2 import DataMigration
@@
-160,6
+159,8
@@
class Migration(DataMigration):
except:
print 'repository not configured, skipping'
else:
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']
print 'migrate from', hg_path
repo = hg.repository(ui.ui(), hg_path)
tip = repo['tip']