|
View:
New views
9 Messages
—
Rating Filter:
Alert me
|
|
|
Empty directories when update to <branch>Hi,
I'm evaluating mercurial for the company I work for. So far I've migrated the CVS repo to mercurial and am now evaluating tool support. In eclipse when I use "update to" and select a branch I see empty directories everywhere. They correspond to directories on other branches or the old CVS HEAD. It's very misleading for someone used to CVS. Is there any way to tell mercurial eclipse to ignore these, or not display them? Can mercurial actually tell that they should not exist for a branch? Thanks, Martin _______________________________________________ Mercurial mailing list Mercurial@... http://selenic.com/mailman/listinfo/mercurial |
|
|
Re: Empty directories when update to <branch>Martin McGovern <martin.mcgovern.dev@...> writes:
> Hi, > > I'm evaluating mercurial for the company I work for. So far I've > migrated the CVS repo to mercurial and am now evaluating tool support. > > In eclipse when I use "update to" and select a branch I see empty > directories everywhere. They correspond to directories on other > branches or the old CVS HEAD. It's very misleading for someone used to > CVS. > > Is there any way to tell mercurial eclipse to ignore these, or not > display them? Can mercurial actually tell that they should not exist > for a branch? Mercurial is not tracking the directories themselves, it is only tracking the files within. When you update to different branches or revisions, the files are added/deleted as necessary. If a directory tree becomes empty, it is deleted. But you might have some ignored files lying around in the directories, which prevents from being deleted. I delete them with rm $(hg status -in) You can also use the purge extension: http://mercurial.selenic.com/wiki/PurgeExtension This is for plain Mercurial on the command line -- I don't know anything about Eclipse. -- Martin Geisler VIFF (Virtual Ideal Functionality Framework) brings easy and efficient SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/. _______________________________________________ Mercurial mailing list Mercurial@... http://selenic.com/mailman/listinfo/mercurial |
|
|
Re: Empty directories when update to <branch>Thanks Martin,
I wasn't sure what mercurial is supposed to do so I couldn't tell if it was the eclipse extension causing the problem. It looks like the update failed to delete the directories when it removed the files. I'll stick to the command line until I'm sure I know what should be happening. On Thu, Nov 5, 2009 at 1:59 PM, Martin Geisler <mg@...> wrote:
_______________________________________________ Mercurial mailing list Mercurial@... http://selenic.com/mailman/listinfo/mercurial |
|
|
|
|
|
Re: Empty directories when update to <branch>On Thu, Nov 5, 2009 at 16:10, Pascal Quantin <pascal.quantin@...> wrote:
> if your operating system is Windows, you could be experiencing issue 1861 > (http://mercurial.selenic.com/bts/issue186). It's solved in crew-stable and > hg-stable repositories. Just to be sure, the correct link: http://mercurial.selenic.com/bts/issue1861 Cheers, Dirkjan _______________________________________________ Mercurial mailing list Mercurial@... http://selenic.com/mailman/listinfo/mercurial |
|
|
Re: Empty directories when update to <branch>Thanks, I'll see if that makes a difference.
Serves me right for using windows ;-) On Thu, Nov 5, 2009 at 3:22 PM, Dirkjan Ochtman <dirkjan@...> wrote:
_______________________________________________ Mercurial mailing list Mercurial@... http://selenic.com/mailman/listinfo/mercurial |
|
|
Re: Empty directories when update to <branch>On Thu, Nov 5, 2009 at 8:41 AM, Martin McGovern
<martin.mcgovern.dev@...> wrote: > I'm evaluating mercurial for the company I work for. So far I've migrated > the CVS repo to mercurial and am now evaluating tool support. Careful: if your CVS repo has tags or branches, 'hg convert' doesn't always convert them accurately. See http://vc.gerg.ca/hg/cvs2svn/raw-file/6de4ed4e3b68/README.cvs2hg for an explanation. AFAIK, my fork of cvs2svn (clone http://vc.gerg.ca/hg/cvs2svn/) is the only CVS-to-hg conversion tool that gets tags and branches right. If you have no tags and no branches, though, 'hg convert' should be fine. Greg _______________________________________________ Mercurial mailing list Mercurial@... http://selenic.com/mailman/listinfo/mercurial |
|
|
Re: Empty directories when update to <branch>Thanks Greg,
Hg convert crashed due to a unknown error with a CVS command when I tried it. I migrated via Subversion with cvs2svn (which I'm also evaluating) instead. I hope this is adequate Martin On Fri, Nov 6, 2009 at 3:41 PM, Greg Ward <greg-hg@...> wrote:
_______________________________________________ Mercurial mailing list Mercurial@... http://selenic.com/mailman/listinfo/mercurial |
|
|
Re: Empty directories when update to <branch>On Mon, Nov 9, 2009 at 9:32 AM, Martin McGovern
<martin.mcgovern.dev@...> wrote: > Hg convert crashed due to a unknown error with a CVS command when I tried > it. I migrated via Subversion with cvs2svn (which I'm also evaluating) > instead. I hope this is adequate Yes, that will probably work. If you're interested, I have implemented direct CVS->Mercurial conversion using the cvs2svn infrastructure. With breathtaking originality, I called the result cvs2hg. Just clone http://vc.gerg.ca/hg/cvs2svn/ and see README.cvs2hg. If cvs2svn works for you, cvs2hg should work better. (Yes, this is going to be pushed upstream to cvs2svn eventually, and no it has not happened yet.) Greg _______________________________________________ Mercurial mailing list Mercurial@... http://selenic.com/mailman/listinfo/mercurial |
| Free embeddable forum powered by Nabble | Forum Help |