On Thu, 26 Oct 2006 19:13:03 -0500, David Harvey  
<[EMAIL PROTECTED]> wrote:

>
> Hi guys,
>
> I know a few people had been wondering how to see inside those opaque
> mercurial bundle files. I asked on the mercurial mailing list, and
> they replied:
>
> hg incoming bundle://path/to/bundle.hg

Hey, that actually works... and is not documented, which is why I didn't
know about it.  Good job!! E.g.,

sage: hg_sage.incoming('latest-linalg.hg')
cd "/Volumes/HOME/s/devel/sage" && hg incoming   
"bundle:///Volumes/HOME/Desktop/latest-linalg.hg"
searching for changes
changeset:   1681:3673c9a15a8d
parent:      1678:9b1f5f348b42
user:        Robert Bradshaw <[EMAIL PROTECTED]>
date:        Thu Oct 26 16:04:07 2006 -0700
summary:     added doctests to generic matrix, fixed a couple of bugs

changeset:   1682:f6f90567490a
tag:         tip
user:        Robert Bradshaw <[EMAIL PROTECTED]>
date:        Thu Oct 26 18:30:04 2006 -0700
summary:     fix arithmatic and use __new__ to construct empty matrices  
for rational_dense

------------

Here's the code I added to misc/hg.py to make hg_sage.incoming (or  
hg_sage.inspect)
work.  This will be in the next version of SAGE:

     def incoming(self, source, options=''):
         """
         Show new changesets found in the given source.  This even
         works if the source is a bundle file (ends in .hg or .bundle).

         Show new changesets found in the specified path/URL or the default
         pull location. These are the changesets that would be pulled if a  
pull
         was requested.

         For remote repository, using --bundle avoids downloading the  
changesets
         twice if the incoming is followed by a pull.

         See pull for valid source format details.

         ALIAS: inspect

         INPUT:
             filename -- string
             options -- string '[-p] [-n] [-M] [-r REV] ...'
                          -M --no-merges     do not show merges
                          -f --force         run even when remote  
repository is unrelated
                             --style         display using template map file
                          -n --newest-first  show newest record first
                             --bundle        file to store the bundles into
                          -p --patch         show patch
                          -r --rev           a specific revision you would  
like to pull
                             --template      display with template
                          -e --ssh           specify ssh command to use
                             --remotecmd     specify hg command to run on  
the remote side
         """
         if os.path.exists(source):
             source = os.path.abspath(source)
         if os.path.splitext(source)[1] in ['.hg', '.bundle']:
             source = 'bundle://%s'%source
         self('incoming %s "%s"'%(options, source))

     inspect = incoming

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to