[Bug 3657] New: Pushing to self gives inscrutable message and hang

bugzilla-daemon at bz.selenic.com bugzilla-daemon at bz.selenic.com
Wed Oct 10 08:19:01 CDT 2012


http://bz.selenic.com/show_bug.cgi?id=3657

          Priority: normal
            Bug ID: 3657
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: Pushing to self gives inscrutable message and hang
          Severity: bug
    Classification: Unclassified
                OS: All
          Reporter: eric-mercurial at omnifarious.org
          Hardware: All
            Status: UNCONFIRMED
           Version: 2.2.3
         Component: Mercurial
           Product: Mercurial

Steps to reproduce:

$ cd $(hg root)
$ hg push .
pushing to .
waiting for lock on repository . held by 'foohost.domain:24654'

This is technically correct behavior. pid '24654' happens to be the pid of the
'hg push'. But it's much less user-friendly than it could be and could cause
confusion.

Note that '.' is just the simplest way of referring to the same repository
you're in. In the case I noticed this, it was '../dir' and I had forgotten that
'dir' was where I actually was, and I meant something else. It took me a lot
longer than it could've for me to diagnose why the repo seemed to be locked.

Perhaps a comparison of the locking pid to the pid of the current process could
catch most of these cases.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list