On Tue, Oct 7, 2014 at 4:58 PM, Mike Dewhirst <[email protected]> wrote:

> I have been using Subversion for years. It doesn't seem to be broken.
>
> So I'm trying to broaden fabfile.py to also use subversion and don't know
> what this means in the deploy method ...
>
> # approximately line 503
> last_commit = "git rev-parse HEAD" if git else "hg id -i"
>
> I have tried to decipher the git docs and tutorials but don't understand
> them. Can someone please explain for me what "hg -d -i" means? In
> particular, I want to work out what svn command would do the same thing.
>

You say further on: "deploy would need to have backed up the svn revision
number" - that's what that line is doing, storing the current revision
number so that if rollback is called, it knows how to go backwards.


>
> Looking at http://mezzanine.jupo.org/docs/deployment.html it would seem
> the fabfile is expecting to find Mezzanine in my repo. In which case, I am
> responsible for merging any revisions from
> https://github.com/stephenmcd/mezzanine/archive/master.zip when new
> releases are announced. That is not so much a question as an assumption.
>

These assumptions are *way* off, and unfortunately come from missing a ton
of understanding better served by some quality time with various bits of
documentation - I'd recommend learning about what a Django project actually
is (Mezzanine creates this for you, and it's the repo that gets deployed as
per above), and what a Python package is (both Django and Mezzanine are
these), and how pip (a Python package management tool) handles installing
dependencies.


>
> And the rollback method looks a bit tricky. deploy would need to have
> backed up the svn revision number.  But anyway, what does "git pull origin
> master" or "hg pull && hg up" mean in the context of a rollback? Sounds to
> me it is more like an update from the master.
>

Again - big topics beyond the scope of the Mezzanine mailing list, but both
those commands are responsible for pulling down the latest set of changes
from a remote repository (say from Github or Bitbucket), and updating the
deployed copy of the project on the web server.


>
> Second last question: Is there a killer reason related to Mezzanine I
> should investigate and maybe start using Mercurial?
>
> Final question: Is it actually worthwhile tweaking fabfile so it can also
> handle svn?
>

Again I can only suggest background reading - Git and Mercurial are
distributed version control systems, and the fabfile leverages this aspect
heavily, so the concepts may not be applicable to SVN.

You've got a lot of reading to do, good luck!


> Thanks
>
> Mike
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Mezzanine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Stephen McDonald
http://jupo.org

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to