ok - so far here are my observations: bug in mercurial_commit():
- app = request.args[0] is not what you intend (this is 'admin'); you _intended_* request.args[1]*, but... Until tonight, I believed you could not have any repository WITHIN a repository (maybe this is just bzr? maybe this is my faulty memory?) --- thankfully, I've tested this and things are looking good! This is REALLY nice for people wanting to do app development, and is a good workflow pattern. I am assuming this is the normal working situation: - you would pull a current revision of web2py pulled from the "master" repository; (so I expect your web2py has it's own .hg repository files) - to have a REPOSITORY within a REPOSITORY, the containing one would need to IGNORE the directory of the contained ones. The web2py .hgignore cannot look at any new apps in ./applications. Fortunately, this is pretty readable and easy. I've tested this (tonight) on Ubuntu. # .hgignore for web2py (example) style: regex # the only apps that are part of the web2py distribution; # all other apps ignored so they can have their own repositories applications/(?!admin|examples|welcome) # shell style expressions follow: style: glob *.pyc # and so on... I will test more tomorrow.... - Yarko On Wed, Apr 29, 2009 at 12:00 AM, Yarko Tymciurak <[email protected]> wrote: > Oh, Man, Massimo - this is great.... > > I'll look in a few mintues... > > I'm thinking this is just the tip of a workflow thing - we should talk a > bit... > > First: local repo is good (localhost); > Second: deploy to remote server > Third: commit to "project" or public place (e.g. bitbucket or google > source, once that's available). > > Thanks for initiating this! > > > On Tue, Apr 28, 2009 at 11:40 PM, mdipierro <[email protected]>wrote: > >> >> there is a new experimental feature in trunk. >> >> run from source >> easy_install mercurial >> >> go to web2py admin and design an app >> >> you will notice a new menu item [mercurial] >> >> if you click on it it creates new mercurial repo associated to the >> app. >> if you write a comment and "commit" the current app gets committed in >> the repo. >> >> This needs to be polished. we should add buttons to revers, get curret >> status etc. >> >> I could use some help... anybody? >> >> I am using these APIs >> >> >> http://www.selenic.com/mercurial/wiki/index.cgi/MercurialApi#head-fee0fb0aca31913079ee91bccde7bbd9b2a88215 >> >> >> > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

