Skip to content
Snippets Groups Projects
  1. Nov 22, 2010
  2. Nov 19, 2010
  3. Nov 21, 2010
    • Adrian Buehlmann's avatar
      check-code: catch Python 'is' comparing number or string literals · 53391819f195
      Adrian Buehlmann authored
      The Python 'is' operator compares object identity, so it should
      definitely not be applied to string or number literals, which Python
      implementations are free to represent with a temporary object.
      
      This should catch the following kinds of bogus expressions (examples):
      
        x is 'foo'     x is not 'foo'
        x is "bar"     x is not "bar"
        x is 42        x is not 42
        x is -36       x is not -36
      
      As originally proposed by Martin Geisler, amended with catching
      negative numbers.
      53391819f195
  4. Nov 22, 2010
  5. Nov 21, 2010
  6. Nov 20, 2010
  7. Nov 18, 2010
  8. Nov 17, 2010
    • Adrian Buehlmann's avatar
      test-hardlinks: add testcase for repo copied with 'cp -al' · 42ac864ed394
      Adrian Buehlmann authored
      This patch adds a case to test-hardlinks.t which demonstrates that
      hardlinks in the working directory are broken up (using 'hg update').
      
      Motivation for this patch:
      
      'hg help clone' shows copying repositories *and* the working directory
      using 'cp -al', creating hardlinks in the *working directory* too (not
      just in the store).
      
      Note that we can't use 'cp -al' since for example MacOS X doesn't
      support these options on cp. I'm thus using the same trick as in
      test-hardlinks-safety.t for creating hardlinks in the working dir.
      42ac864ed394
  9. Nov 18, 2010
  10. Nov 17, 2010
  11. Nov 02, 2010
  12. Nov 16, 2010
  13. Nov 17, 2010
  14. Nov 16, 2010
  15. Nov 17, 2010
  16. Nov 16, 2010
  17. Nov 15, 2010
  18. Nov 11, 2010
    • Adrian Buehlmann's avatar
      discovery: list new remote heads in prepush() on --debug · 91cb08a9e7fb
      Adrian Buehlmann authored
      With this patch applied, Mercurial will list the hashes of new remote heads
      if push --debug aborts because of new remote heads (option -f/--force not set).
      
      Example:
      
        $ hg push --debug repo1
        using http://example.org/repo1
        http auth: user johndoe, password not set
        sending between command
        pushing to http://example.org/repo1
        sending capabilities command
        capabilities: changegroupsubset stream=1 lookup pushkey unbundle=HG10GZ,HG10BZ,HG10UN branchmap
        sending heads command
        searching for changes
        common changesets up to 609edbc7853f
        sending branchmap command
        new remote heads on branch 'default'        <- new output line
        new remote head 5862c07f53a2                <- new output line
        abort: push creates new remote heads on branch 'default'!
        (did you forget to merge? use push -f to force)
      
      Compare to without --debug (not changed by this patch, including it here
      for reference purposes only):
      
        $ hg push repo1
        pushing to http://example.org/repo1
        searching for changes
        abort: push creates new remote heads on branch 'default'!
        (did you forget to merge? use push -f to force)
      
      Motivation for this change:
      
      'hg outgoing' may list a whole lot of benign changesets plus an odd changeset
      that will trigger the "new remote heads" abort. It can be hard to spot that
      single unwanted changeset (it may be an old forgotten experiment, lingering
      in the local repo).
      
      "hg log -r 'heads(outgoing())'" might be useful, but that also lists a head
      that may be benign on push.
      
      Inside prepush(), we already know which heads are causing troubles on 'hg push'.
      Why not make that info available (at least on --debug)?
      
      This would also be helpful for doing remote support, as the supporter can ask
      the user to paste the output of 'hg push --debug' on error and then ask further
      questions about the heads listed.
      91cb08a9e7fb
    • Adrian Buehlmann's avatar
      discovery: remove erroneous comment in prepush() · a50606327538
      Adrian Buehlmann authored
      New named branches *can* be created without -f/--force by specifying
      --new-branch
      a50606327538
  19. Nov 14, 2010
  20. Nov 15, 2010
Loading