2011-05-15 16 views
6

मैं MqTutorial और HGbook Chapter 13 में वर्णित एमक्यू के साथ अपना वर्कफ़्लो सेट अप करने का प्रयास कर रहा हूं। जिस भाग के साथ मैं संघर्ष करता हूं वह है कि संस्करण के तहत एकाधिक पैच क्विक कैसे करें।कैसे एकाधिक एचजी एमक पैच कतार (एक भंडार बनाम कई subrepos में)

विकल्प:

मैं हर पंक्ति के लिए एक अलग भंडार बनाएँ। एक त्रुटि में निम्न परिणाम: .hgsub फ़ाइल

समस्या में subrepos के रूप में इस प्रबंधनीय निशान रेपोस बनाने के पथ अवैध घटक

.hg/patches-queue1 = .hg/patches-queue1 

द्वितीय शामिल हैं। HGbook Chapter 13 का वर्णन करता है कि आप की तरह

qnew queue1/patch1.diff 

समस्या उपनिर्देशिका में पैच जोड़ सकते हैं: सभी पैच एक ही कतार में अभी भी कर रहे हैं और आदेश

में लागू किया जाना है वहां के तहत अपने सभी पैच कतारों के लिए एक और रास्ता नहीं है संस्करण नियंत्रण और धक्का दिया? एकाधिक एचजी एमक्यू पैच कतार एक भंडार में?

उत्तर

14

hg qqueue आदेश देखें जो mq का हिस्सा है।

hg qqueue [OPTION] [QUEUE] 

manage multiple patch queues 

    Supports switching between different patch queues, as well as creating new 
    patch queues and deleting existing ones. 

    Omitting a queue name or specifying -l/--list will show you the registered 
    queues - by default the "normal" patches queue is registered. The 
    currently active queue will be marked with "(active)". 

    To create a new queue, use -c/--create. The queue is automatically made 
    active, except in the case where there are applied patches from the 
    currently active queue in the repository. Then the queue will only be 
    created and switching will fail. 

    To delete an existing queue, use --delete. You cannot delete the currently 
    active queue. 

    Returns 0 on success. 

options: 

-l --list list all available queues 
-c --create create new queue 
    --rename rename active queue 
    --delete delete reference to queue 
    --purge delete queue, and remove patch dir 

आप .hg में सामान बाहरी (बाहरी/माता-पिता) रेपोस के उप रेपोस हो नहीं हो सकता है, लेकिन यह अलग है करने के लिए संभव हो जाना चाहिए: यह आप एक स्वचालित फैशन में कई पैच कतारों स्विच करने देता है प्रत्येक qqueue repos के लिए पथ, और शायद उन्हें एक अभिभावक रेपो का सब सबपोज़ बनाते हैं जो स्वयं ही .hg/पैच के अंदर है।