HgShell 0.1 bug -- .hg does not always denote a repository
Ignacio Alvarez
dev at xentient.com
Thu Jul 12 00:44:16 CDT 2007
Fixed and uploaded version 0.1.2.
Thanks.
Ignacio.
Gregory Collins wrote:
> Hello,
>
> If you try to run "clone repository" from somewhere within a cygwin
> homedir, the tool doesn't work --- it goes directly to the hg command
> prompt, and in my case, it creates a directory /home/greg.1 which
> looks like it's trying to be an hg tree.
>
> I think the reason for this is that there's a $HOME/.hg file in the
> parent hierarchy, which causes your tool to assume the current working
> directory is an hg repository rooted at /home/greg. Could you change
> this check to peek inside the .hg directory for 00changelog.i?
>
> Thanks,
> Gregory Collins <greg at maptuit.com>
>
> On Wed, Jul 11, 2007 at 07:24:09PM -0700, Ignacio Alvarez wrote:
>
>> Additional comments on the extension:
>>
>> - I just realized that the glog command doesn't accept a file parameter,
>> so "hg glog readme" won't display only the log entries for the readme
>> file. I've just uploaded version 0.1.1 of the extension to work around
>> this problem. The extension now uses "hg log" if the "Show log" command is
>> invoked on a file, and "hg glog" if invoked on a folder.
>>
>> - The "Clone repository" command automatically determines the name of the
>> repository from the URL you give it. For example, if you clone
>> [1]http://selenic.com/repo/hg, the repository is named hg, and if you
>> clone [2]http://AMD:8000, the repository is named AMD_8000.
>>
>> - When cloning a repository served using the "Run server" command, you can
>> append a name to the URL to give the repository a specific name. For
>> example, [3]http://AMD:8000/RepoName.
>>
>> - By default, KDiff3 makes backups of the files it overwrites when
>> merging. You can deselect this option using the "Settings->Configure
>> KDiff3" menu command if you don't want your repositories filled with
>> ".orig" files. The option can be found at the bottom of the "Directory
>> Merge" tab:
>>
>> [4]http://xentient.com/images/SNAG-00007.png
>>
>> - The "Push" command always does a pull first (a fetch actually) to avoid
>> the problem of creating multiple heads on the server it is pushing its
>> changes to.
>>
>> Thank you.
>>
>> Ignacio.
>>
>> Ignacio Alvarez wrote:
>>
>> A few weeks back, I wrote a simple context menu extension for
>> integrating Mercurial with Windows Explorer:
>>
>> [5]http://xentient.com/images/SNAG-00006.png
>>
>> I've been waiting for some free time to write a basic tutorial on how to
>> use the extension before releasing it, but I've figured I'm going to
>> have to wait much longer, so I'm releasing it as is, in case anyone
>> finds it useful:
>>
>> [6]http://xentient.com/setups/hgshell-setup.zip
>>
>> The setup program will also install and configure Mercurial, Qct, and
>> KDiff3.
>>
>> The extension basically works by passing the appropriate arguments to
>> the hg command, either directly or through batch files stored in the
>> "hgshell\scripts" folder.
>>
>> The "Clone repository" command works a bit different than you might
>> expect. If you invoke it on a repository on your hard disk, it will
>> automatically create a clone and append a number to the name. For
>> example, if you clone "c:\repo" it will create a repository named
>> "c:\repo.1" and if you clone it again it will create a repository named
>> "c:\repo.2". If you invoke the clone command on a folder that isn't a
>> repository, it will display a dialog where you can enter the URL of the
>> repository you wish to clone.
>>
>> The extension stores its own settings in a file named ".hgoptions"
>> inside the repository. This file shouldn't be tracked by Mercurial,
>> since it's rewritten constantly and will most likely be different for
>> each user.
>>
>> Thank you.
>>
>> Ignacio.
>>
>> ------------------------------------------------------------------
>>
>> _______________________________________________
>> Mercurial mailing list
>> [7]Mercurial at selenic.com
>> [8]http://selenic.com/mailman/listinfo/mercurial
>>
>>
>> References
>>
>> Visible links
>> 1. http://selenic.com/repo/hg
>> 2. http://amd:8000
>> 3. http://amd:8000/RepoName
>> 4. http://xentient.com/images/SNAG-00007.png
>> 5. http://xentient.com/images/SNAG-00006.png
>> 6. http://xentient.com/setups/hgshell-setup.zip
>> 7. mailto:Mercurial at selenic.com
>> 8. http://selenic.com/mailman/listinfo/mercurial
>>
>
>
>> _______________________________________________
>> Mercurial mailing list
>> Mercurial at selenic.com
>> http://selenic.com/mailman/listinfo/mercurial
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://selenic.com/pipermail/mercurial/attachments/20070711/2fba16f0/attachment-0001.htm
More information about the Mercurial
mailing list