Skip to content
Snippets Groups Projects
  1. Feb 22, 2025
  2. May 02, 2022
  3. Sep 04, 2018
  4. Aug 29, 2018
    • Boris Feld's avatar
      phase: report number of non-public changeset alongside the new range · 89630d0b3e23
      Boris Feld authored
      When interacting with non-publishing repository or bundle, it is useful to
      have some information about the phase of the changeset we just pulled.
      
      This changeset updates the "new changesets MIN:MAX" output to also includes
      phases information for non-public changesets. Displaying extra data about
      non-public changesets means the output for exchange with publishing repository
      (the default) is unaffected.
      89630d0b3e23
  5. Apr 03, 2018
  6. Dec 11, 2017
    • Matt Harbison's avatar
      tests: remove (glob) annotations that were only for '\' matches · 4441705b7111
      Matt Harbison authored
      # skip-blame because this was mechanically rewritten the following script.  I
      ran it on both *.t and *.py, but none of the *.py changes were proper.  All *.t
      ones appear to be, and they run without addition failures on both Windows and
      Linux.
      
        import argparse
        import os
        import re
      
        ap = argparse.ArgumentParser()
        ap.add_argument('path', nargs='+')
        opts = ap.parse_args()
      
        globre = re.compile(r'^(.*) \(glob\)(.*)$')
      
        for p in opts.path:
            tmp = p + '.tmp'
            with open(p, 'rb') as src, open(tmp, 'wb') as dst:
                for line in src:
                    m = globre.match(line)
                    if not m or '$LOCALIP' in line or '*' in line:
                        dst.write(line)
                        continue
                    if '?' in line[:-3] or ('?' in line[:-3] and line[-3:] != '(?)'):
                        dst.write(line)
                        continue
                    dst.write(m.group(1) + m.group(2) + '\n')
            os.unlink(p)
            os.rename(tmp, p)
      4441705b7111
  7. Oct 12, 2017
    • Denis Laxalde's avatar
      transaction-summary: show the range of new revisions upon pull/unbundle (BC) · eb586ed5d8ce
      Denis Laxalde authored
      Upon pull or unbundle, we display a message with the range of new revisions
      fetched. This revision range could readily be used after a pull to look out
      what's new with 'hg log'. The algorithm takes care of filtering "obsolete"
      revisions that might be present in transaction's "changes" but should not be
      displayed to the end user.
      eb586ed5d8ce
  8. Jan 06, 2016
  9. May 09, 2013
  10. Apr 23, 2013
  11. Apr 22, 2013
  12. Jan 18, 2013
    • Mads Kiilerich's avatar
      unionrepo: read-only operations on a union of two localrepos · a9c443b3b240
      Mads Kiilerich authored
      unionrepo is just like bundlerepo without bundles.
      
      The implementation is very similar to bundlerepo, but I don't see any obvious
      way to generalize it.
      
      Some most obvious use cases for this would be log and diff across local repos,
      as a kind of preview of pulls, for instance:
      
        $ hg -R union:repo1+repo2 heads
        $ hg -R union:repo1+repo2 log -r REPO1REV -r REPO2REV
        $ hg -R union:repo1+repo2 log -r '::REPO1REV-::REPO2REV'
        $ hg -R union:repo1+repo2 log -r 'ancestor(REPO1REV,REPO2REV)'
        $ hg -R union:repo1+repo2 diff -r REPO1REV -r REPO2REV
      
      This is going to be used in RhodeCode, and Bitbucket already uses something
      similar. Having a core implementation would be beneficial.
      a9c443b3b240
Loading