Commits

Anonymous committed 3119e26

Make sure the dist target works with slightly older revisions of Mercurial

Comments (0)

Files changed (1)

 distdir:
 	$(if $(findstring tip,$(RIAK_TAG)),$(error "You can't generate a release tarball from tip"))
 	mkdir distdir
-	hg clone -u $(RIAK_TAG) . distdir/riak-clone
+	hg clone . distdir/riak-clone
+	cd distdir/riak-clone; \
+	hg update -r $(RIAK_TAG)
 	cd distdir/riak-clone; \
 	hg archive ../$(RIAK_TAG); \
 	mkdir ../$(RIAK_TAG)/deps; \