https://bugzilla.wikimedia.org/show_bug.cgi?id=29636

       Web browser: ---
             Bug #: 29636
           Summary: Create an easy way to update CodeReview
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: CodeReview
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


Right now updating either needs to happen through shell with svnImport.php, or
if one knows the current HEAD via an API POST request.

I created a gadget that uses the latter but the problem with it is that it's
currently not very usable. What it does is this:
* Adds an "update" tab to #contentSub
* Scraps html for reponame (#contentSub a:first .text())
* action=query&list=coderevisions limit=1 to get last checked out rev id
* display dropdown menu with [1,5,10,25,50,100]. 
* When submitting the form add the chosen number to lastRevId and make a post
request to action=codeupdate&repo=reponame&rev=calculatedrevid
* Problem: If the rev is too high it fails and does nothing so we end up
updating 1 rev at a time untill it throws an error...

A way to do action=codeupdate&rev=HEAD (or something like that) would be much
appreciated.

svnImport.php does pull it off, so perhaps that system can be re-used, copied
or invoked.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to